/*
 * ============================================================
 * Du Toan Chi Phi - Shortcode Styles
 * Mô tả: Định dạng giao diện form dự toán chi phí cửa nhôm kính
 *        Sử dụng nền tối với các ô nhập liệu trong suốt
 * ============================================================
 */

.dtcp-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 24px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
}

.dtcp-title {
    text-align: center;
    color: #ffffff;
    font-size: 2em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.dtcp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dtcp-row {
    display: grid;
    gap: 16px;
}

.dtcp-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dtcp-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dtcp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dtcp-field label {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dtcp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    flex-shrink: 0;
}

.dtcp-field input,
.dtcp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95em;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.dtcp-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dtcp-field input:focus,
.dtcp-field select:focus {
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.25);
}

.dtcp-field select option {
    background: #333333;
    color: #ffffff;
}

.dtcp-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    grid-template-columns: unset !important;
}

.dtcp-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.2s, transform 0.1s;
}

.dtcp-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.dtcp-btn-primary {
    background-color: #2e7d32;
    color: #ffffff;
}

.dtcp-btn-secondary {
    background-color: #388e3c;
    color: #ffffff;
}

/* Result table */
.dtcp-result {
    margin-top: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.dtcp-result-header {
    background-color: #2e7d32;
    color: #ffffff;
    font-weight: 700;
    font-size: 1em;
    padding: 12px 16px;
    letter-spacing: 1px;
}

.dtcp-result-table {
    width: 100%;
    border-collapse: collapse;
}

.dtcp-result-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dtcp-result-table tr:last-child {
    border-bottom: none;
}

.dtcp-result-table td {
    padding: 10px 16px;
    color: #ffffff !important;
    font-size: 0.95em;
    vertical-align: middle;
}

.dtcp-result-table td strong {
    color: #ffffff !important;
}

.dtcp-result-table td:first-child {
    width: 55%;
}

.dtcp-result-table td:last-child {
    text-align: right;
}

.dtcp-badge {
    display: inline-block;
    background-color: #c62828;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {

    .dtcp-row-3,
    .dtcp-row-2 {
        grid-template-columns: 1fr;
    }

    .dtcp-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dtcp-btn {
        width: 100%;
        max-width: 280px;
    }
}