/* ========================
   FORM ĐẶT XE - STYLES
   ======================== */

/* Banner background full width - break out of theme container */
.datxe-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.datxe-banner-inner {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 40px 15px;
}

/* Form column */
.datxe-form-col {
    width: 500px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 30px;
}

/* Title */
.datxe-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.datxe-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

/* Group label */
.datxe-group-label {
    font-size: 14px;
    font-weight: 600;
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #f39c12;
    display: inline-block;
}

/* Row: 2 columns */
.datxe-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.datxe-field {
    flex: 1;
    min-width: 0;
}

/* Labels */
.datxe-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.datxe-field label .required {
    color: #e74c3c;
}

/* Inputs & Selects */
.datxe-field input[type="text"],
.datxe-field input[type="tel"],
.datxe-field input[type="date"],
.datxe-field input[type="time"],
.datxe-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 44px;
}

.datxe-field input:focus,
.datxe-field select:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

/* Placeholder: in nghiêng */
.datxe-field input::placeholder {
    font-style: italic;
    font-weight: normal;
}

/* Select chưa chọn (placeholder): in nghiêng */
.datxe-field select:invalid,
.datxe-field select:not(.has-value) {
    font-style: italic;
    font-weight: normal;
}

/* Select/Input đã chọn giá trị: in đậm */
.datxe-field select.has-value,
.datxe-field input.has-value {
    font-weight: 600;
}

/* Danh sách options trong dropdown: chữ thường, không nghiêng */
.datxe-field select option,
.datxe-field select optgroup {
    font-style: normal;
    font-weight: normal;
}

.datxe-field select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Radio group */
.datxe-radio-group {
    display: flex;
    gap: 20px;
    padding-top: 8px;
}

.datxe-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.datxe-radio input[type="radio"] {
    accent-color: #f39c12;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Submit button */
.datxe-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.datxe-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.datxe-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Messages */
.datxe-message {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.datxe-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.datxe-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================
   RESPONSIVE
   ======================== */

/* Mobile */
@media (max-width: 768px) {
    .datxe-banner-inner {
        padding: 20px 10px;
    }

    .datxe-form-col {
        width: 100%;
        padding: 20px 15px;
    }

    .datxe-row {
        gap: 8px;
    }

    .datxe-radio-group {
        flex-direction: column;
        gap: 6px;
    }
}
