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

.datxe-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Left: Form */
.datxe-form-col {
    flex: 1;
    min-width: 0;
}

/* Right: Image */
.datxe-image-col {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datxe-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 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 24px 0;
}

/* Group label */
.datxe-group-label {
    font-size: 14px;
    font-weight: 600;
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 18px 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;
    margin-bottom: 12px;
}

/* 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 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;
}

.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);
}

.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: 20px;
    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
   ======================== */

/* Tablet */
@media (max-width: 900px) {
    .datxe-image-col {
        flex: 0 0 280px;
    }
}

/* Mobile: ẩn ảnh */
@media (max-width: 768px) {
    .datxe-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .datxe-image-col {
        display: none;
    }

    .datxe-row {
        flex-direction: column;
        gap: 0;
    }
}
