.container {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    color: #222;
}
/* /* ================= HERO SECTION ================= */
.s08-hero {
    height: 100vh;
    background: url('../../banner/S08DM.webp') center center / cover no-repeat;
    position: relative;
}

html {
    scroll-behavior: smooth;
}


/* Container (kept for future text if needed) */
.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ================= BUTTONS (DESKTOP) ================= */
.hero-actions {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.btn-orange {
    background: #f58220;
    color: #ffffff;
    padding: 12px 26px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-orange:hover {
    opacity: 0.9;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    /* Banner height & visibility */
    .s08-hero {
        height: 48vh;
        background-position: center top;
    }

    /* Buttons stay on SAME LINE */
    .hero-actions {
        bottom: 14px;
        right: 14px;
        gap: 6px;
        flex-direction: row;
        align-items: center;
    }

    /* Smaller buttons for mobile */
    .btn-orange {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 5px;
    }

    

}

@media (max-width: 768px) {

    /* Global container spacing smaller */
    .container {
        width: calc(100% - 20px);
    }

    /* Intro section */
    .s08-section {
        padding: 20px 20px !important;
    }

    /* Test drive section */
    .test-drive-section {
        padding: 25px 10px !important;
        
    }

}


/* ================= EXTRA SMALL DEVICES ================= */
@media (max-width: 360px) {

    .btn-orange {
        padding: 5px 8px;
        font-size: 10px;
    }
}


/* CONTENT */
.s08-section {
    max-width: 1200px;      /* controls content width */
    margin: 0 auto 25px;    /* centers horizontally */
    padding: 30px 40px;     /* desktop padding */
}
.section-title {
     font-size: 23px;
    font-weight: 700;
    color: #f58220; /* orange like image */
    margin: 40px 0 15px;
}

.section-subtitle {
    font-size: 23px;
    font-weight: 700;
    color: #f58220; /* orange like image */
    margin: 40px 0 15px;
}

.section-text {
    font-size: 15px;
    line-height: 1.8;
    color: #222;
    max-width: 900px;
    text-align: justify;
}

.panel {
    background: #f7f7f7;
    margin-top: 40px;
}

 
.panel .wrap {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

/* TEST DRIVE */
.test-drive-section {
    background: #f7f7f7;
    padding: 40px 38px;
}

.test-drive-section h2 {
    font-size: 25px;
    margin-bottom: 25px;
    font-weight: 800;
}

.test-drive-text {
    margin-bottom: 30px;
    color: #555;
    line-height: 21px;
}

.test-drive-form {
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input,
.form-row select,
.test-drive-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.test-drive-form textarea {
    height: 140px;
    resize: none;
}

.btn-submit {
    background: #000;
    color: #fff;
    padding: 14px 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}


.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

 

.phone-input-wrapper .country-code img {
    width: 22px;
    height: auto;
    display: block;
}

.phone-input-wrapper input {
    border: none;
    outline: none;
    padding: 12px;
    flex: 1;
    font-size: 14px;
}

.phone-input-wrapper input::placeholder {
    color: #999;
}

/* === FORM GRID === */
.test-drive-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* col-6 + col-6 */
    gap: 20px;
    margin-bottom: 20px;
}

/* All inputs/selects equal height & width */
.test-drive-form input,
.test-drive-form select,
.test-drive-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Phone input must behave like normal input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dcdcdc;
    background: #fff;
}

/* Flag + code */
.phone-input-wrapper .country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.phone-input-wrapper img {
    width: 22px;
    height: auto;
}

/* Phone input */
.phone-input-wrapper input {
    border: none;
    flex: 1;
    padding: 14px 16px;
}

/* Message full width */
.test-drive-form textarea {
    grid-column: 1 / -1;
    min-height: 140px;
}

/* === MOBILE STACK === */
@media (max-width: 768px) {
    .test-drive-form .form-row {
        grid-template-columns: 1fr;
    }
}


/* === UNIFY PLACEHOLDER STYLE (DESKTOP + MOBILE) === */
.test-drive-form input::placeholder,
.test-drive-form textarea::placeholder {
    font-size: 14px;
    color: #9a9a9a;
    font-weight: 400;
}

/* Chrome, Edge, Safari */
.test-drive-form input::-webkit-input-placeholder,
.test-drive-form textarea::-webkit-input-placeholder {
    font-size: 14px;
    color: #9a9a9a;
}

/* Firefox */
.test-drive-form input::-moz-placeholder,
.test-drive-form textarea::-moz-placeholder {
    font-size: 14px;
    color: #9a9a9a;
}

/* IE / legacy Edge */
.test-drive-form input:-ms-input-placeholder,
.test-drive-form textarea:-ms-input-placeholder {
    font-size: 14px;
    color: #9a9a9a;
}

/* Phone field input specifically */
.phone-input-wrapper input {
    font-size: 14px;
    color: #000;
}

/* Country code text match placeholder size */
.phone-input-wrapper .country-code {
    font-size: 14px;
    color: #000;
}


select {
    height: 46px; /* Match the input field height */
    line-height: normal;
    padding: 12px;
    padding-right: 35px; /* Space for the arrow */
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #888;
    box-sizing: border-box;
    width: 100%;
    
    /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Add custom chevron arrow that matches screenshot */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 46px;
    }
}

/* Reset select focus outline to match inputs */
select:focus {
    outline: none;
    border-color: #4d90fe;
}

/* Hide arrow in IE10+ */
select::-ms-expand {
    display: none;
}


.error-text {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

.input-error {
    border: 1px solid red !important;
}


.error-message {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

 .mb-4{
    margin-bottom: 20px;
 }