/* ==========================================================
   VINFAST TEST DRIVE - CSS
========================================================== */
.vftd-wrap {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    padding: 40px 15px;
    box-sizing: border-box;
}

.vftd-wrap * {
    box-sizing: border-box;
}

.vftd-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Background line aesthetic from VinFast */
.vftd-layout::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

/* LEFT COLUMN */
.vftd-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
}

.vftd-image-stage {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.vftd-image-stage img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

/* RIGHT COLUMN (FORM) */
.vftd-right {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 40px;
    position: relative;
    z-index: 2;
    border-left: 1px solid #f1f5f9;
}

.vftd-header {
    text-align: center;
    margin-bottom: 25px;
}

.vftd-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.vftd-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* TABS */
.vftd-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.vftd-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.vftd-tab-btn:hover {
    color: #1e3a8a;
}

.vftd-tab-btn.active {
    color: #1464f4;
}

.vftd-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1464f4;
}

/* SECTIONS */
.vftd-section {
    margin-bottom: 20px;
}

.vftd-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vftd-field-group {
    display: flex;
    gap: 15px;
}

.vftd-field {
    flex: 1;
    margin-bottom: 15px;
    position: relative;
}

.vftd-field-full {
    width: 100%;
}

.vftd-field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.vftd-field label span {
    color: #1464f4;
}

.vftd-field input,
.vftd-select-wrapper select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.vftd-field input:focus,
.vftd-select-wrapper select:focus {
    border-color: #1464f4;
}

/* Character counter */
.vftd-field.relative input {
    padding-right: 50px;
}

.vftd-char-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
}

/* Select Wrapper */
.vftd-select-wrapper {
    position: relative;
}

.vftd-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #64748b;
    pointer-events: none;
}

.vftd-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Input icons (Date/Time) */
.vftd-input-icon {
    position: relative;
}

.vftd-input-icon input[type="date"]::-webkit-calendar-picker-indicator,
.vftd-input-icon input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

/* CHECKBOXES */
.vftd-terms {
    margin-top: 10px;
    margin-bottom: 25px;
}

.vftd-checkbox {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    user-select: none;
}

.vftd-checkbox a {
    color: #1464f4;
    text-decoration: none;
}

.vftd-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.vftd-checkbox .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    transition: 0.2s;
}

.vftd-checkbox input:checked ~ .checkmark {
    background-color: #1464f4;
    border-color: #1464f4;
}

.vftd-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vftd-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* BUTTON */
.vftd-btn-submit {
    width: 100%;
    background: #cbd5e1; /* Gray by default like the image */
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.vftd-form:valid .vftd-btn-submit {
    background: #1464f4; /* Turns blue when valid */
}

.vftd-btn-submit:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed;
}

.vftd-msg {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
    text-align: center;
}

.vftd-msg.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.vftd-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* FOOTER HOTLINE */
.vftd-footer-hotline {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
}

.vftd-footer-hotline a {
    color: #1464f4;
    font-weight: 700;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .vftd-layout {
        flex-direction: column;
    }
    
    .vftd-layout::before {
        display: none;
    }
    
    .vftd-left {
        padding: 30px 20px 10px;
        background: #f8f9fa;
    }
    
    .vftd-image-stage img {
        max-height: 250px;
    }
    
    .vftd-right {
        max-width: 100%;
        padding: 20px;
        border-left: none;
    }
    
    .vftd-field-group {
        flex-direction: column;
        gap: 0;
    }
}
