* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f6ff;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

.kia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.kia-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem 1.5rem;
    margin-top: -6px;
    background: linear-gradient(135deg, #1d4d86 0%, #2a6ac8 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.kia-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.625rem;
    font-weight: 700;
}

.kia-header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    font-weight: 400;
}

.kia-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kia-models-section {
    flex: 2;
    min-width: 280px;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-height: 727px;
    overflow-y: auto;
}

.kia-models-section h2 {
    color: #1d4d86;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1d4d86;
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
}

.model-card {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: #1d4d86;
    background: #eef4ff;
}

.model-card h4 {
    color: #1d4d86;
    font-size: clamp(1.1rem, 2.8vw, 1.2rem);
    font-weight: 600;
    margin: 0;
}

.kia-model-desc {
    font-size: clamp(0.8rem, 2.3vw, 0.85rem);
    color: #555;
    margin: 0;
}

.kia-model-info {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.kia-model-info img {
    width: clamp(70px, 18vw, 90px);
    height: auto;
    border-radius: 8px;
    border: 2px solid #c6d6ff;
}

.kia-model-text p {
    margin: 0 0 0.3rem;
    font-size: clamp(0.8rem, 2.3vw, 0.85rem);
    color: #333;
}

.kia-model-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.kia-model-actions a {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
}

.kia-btn-call {
    background: #1d4d86;
    color: #fff;
}

.kia-btn-call:hover {
    background: #2a6ac8;
}

.kia-btn-email {
    background: #ffff0f;
    color: #1d4d86;
}

.kia-btn-email:hover {
    background: #ffcc00;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.page-link {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: #f0f6ff;
    border: 1px solid #c6d6ff;
    color: #1d4d86;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
}

.page-link:hover {
    background: #1d4d86;
    color: #fff;
}

.page-link.active {
    background: #ffff0f;
    color: #1d4d86;
    font-weight: bold;
    border-color: #ffcc00;
}

.form-section {
    flex: 1;
    min-width: 240px; /* Further reduced min-width for compactness */
    background: linear-gradient(135deg, #1d4d86 0%, #2a6ac8 100%);
    border-radius: 8px; /* Smaller border-radius */
    padding: 1rem; /* Further reduced padding */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 320px; /* Further reduced max-width */
}

.form-section h2 {
    margin-bottom: 0.75rem; /* Reduced margin */
    text-align: center;
    font-weight: 600;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem); /* Smaller font */
}

.form-section h2::after {
    content: "";
    display: block;
    width: 40px; /* Smaller underline */
    height: 1.5px; /* Thinner underline */
    background: #ffff0f;
    margin: 0.3rem auto 0;
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 0.5rem; /* Further reduced margin */
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Further reduced gap */
}

.form-group label {
    flex: 0 0 60px; /* Smaller label width */
    font-weight: 500;
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Smaller font */
    color: #ffffff;
    text-align: right;
}

.form-group select,
.form-group input {
    flex: 1;
    padding: 0.5rem; /* Further reduced padding */
    border: none;
    border-radius: 5px; /* Smaller border-radius */
    background-color: rgba(255, 255, 255, 0.95);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Smaller font */
    color: #1d4d86;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 1.5px rgba(255, 204, 0, 0.4); /* Thinner focus ring */
    background-color: #ffffff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%231d4d86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 8px; /* Smaller dropdown arrow */
}

.form-group input::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.form-group .text-danger {
    color: #ffcc00;
    font-size: 0.7rem; /* Smaller font */
    margin-left: 0.15rem;
}

.form-group h5 {
    font-size: clamp(0.6rem, 1.5vw, 0.7rem); /* Smaller font */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    margin: 0.3rem 0;
    text-align: left;
}

.form-group input[type="checkbox"] {
    width: 0.9rem; /* Smaller checkbox */
    height: 0.9rem;
    accent-color: #ffff0f;
    cursor: pointer;
}

.form-group .btn-primary,
.form-group .btn-secondary {
    padding: 0.5rem 0.8rem; /* Further reduced padding */
    border-radius: 5px; /* Smaller border-radius */
    font-weight: 600;
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    margin-right: 0.3rem;
}

.form-group .btn-primary {
    background: #ffff0f;
    color: #1d4d86;
}

.form-group .btn-primary:hover {
    background: #ffcc00;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

.form-group .btn-secondary {
    background: #ffffff;
    color: #1d4d86;
}

.form-group .btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.alert {
    background: #ffffff;
    color: #1d4d86;
    padding: 0.5rem; /* Further reduced padding */
    border-radius: 5px; /* Smaller border-radius */
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.alert strong {
    font-weight: 600;
}

.alert .btn-close {
    background: none;
    border: none;
    color: #1d4d86;
    font-size: 0.7rem; /* Smaller font */
    cursor: pointer;
    padding: 0.15rem;
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 77, 134, 0.98);
    border-radius: 8px; /* Smaller border-radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.form-success i {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Smaller icon */
    color: #ffff0f;
    margin-bottom: 0.75rem;
    animation: bounce 0.4s ease-in-out;
}

.form-success h3 {
    color: #ffffff;
    font-size: clamp(1rem, 3vw, 1.2rem); /* Smaller font */
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-success p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 80%;
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Smaller font */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.benefits {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.benefits h2 {
    color: #1d4d86;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2rem);
    font-weight: 700;
    position: relative;
}

.benefits h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #ffff0f;
    margin: 0.75rem auto 0;
    border-radius: 3px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    background: #f9fbfd;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e6ecf2;
}

.benefit-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border-color: #ffcc00;
}

.benefit-icon {
    background-color: #1d4d86;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.375rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background-color: #ffcc00;
    color: #1d4d86;
    transform: rotate(15deg) scale(1.15);
}

.benefit-item h3 {
    font-size: clamp(1.125rem, 3vw, 1.2rem);
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: #1d4d86;
}

.benefit-item p {
    font-size: clamp(0.85rem, 2.5vw, 0.875rem);
    color: #555;
    margin: 0;
}

.rating-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.875rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.rating-section h2 {
    color: #1d4d86;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.rating-stars {
    color: #ffff0f;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.9375rem;
}

.rating-value {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: bold;
    color: #1d4d86;
    margin-bottom: 0.625rem;
}

.rating-count {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.rating-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.rating-card {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid #e1e8ff;
    transition: all 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rating-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9375rem;
}

.customer-name {
    font-weight: bold;
    color: #1d4d86;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.customer-rating {
    color: #ffff0f;
}

.review-date {
    color: #888;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    margin-top: 0.625rem;
}

.contact-section {
    background: #1d4d86;
    color: white;
    border-radius: 10px;
    padding: 1.875rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-section h2 {
    margin-bottom: 0.9375rem;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.phone-number {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
    color: #ffff0f;
    margin: 0.9375rem 0;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-number:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.spanish-text {
    font-style: italic;
    margin-top: 0.625rem;
    display: block;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #666;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.call-now-button {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
    color: #1d4d86;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.call-now-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.call-now-button i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

.scroll-top {
    position: fixed;
    bottom: 7rem;
    right: 1.25rem;
    background: #1d4d86;
    color: white;
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #2a6ac8;
    transform: translateY(-3px);
}

.sticky-call-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1d4d86;
    text-align: center;
    padding: 0.75rem 0;
    z-index: 2000;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
}

.sticky-call-footer a {
    color: #ffff0f;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Montserrat', sans-serif;
}

.sticky-call-footer a i {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.instant-support {
    margin-top: 2rem;
    margin-bottom: 1.875rem;
    text-align: center;
    background: linear-gradient(135deg, #f4f8ff, #eaf0ff);
    border: 2px solid #c6d6ff;
    padding: 1.125rem 1.75rem;
    border-radius: 15px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.instant-support:hover {
    background: linear-gradient(135deg, #e0ebff, #d1e0ff);
    border-color: #1d4d86;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.instant-support p {
    margin: 0;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: #1d4d86;
}

.instant-support .support-number {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #e63946, #b71c1c);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(230,57,70,0.4);
    font-family: 'Montserrat', sans-serif;
}

.instant-support .support-number:hover {
    background: linear-gradient(135deg, #b71c1c, #e63946);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(183,28,28,0.5);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .kia-container {
        padding: 0 0.5rem;
    }

    .kia-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .kia-models-section {
        margin: 0 1rem;
        padding: 0.75rem;
        max-height: 400px;
    }

    .kia-model-info {
        flex-direction: column;
        align-items: center;
    }

    .kia-model-info img {
        width: 100%;
        max-width: 180px;
        margin-bottom: 0.5rem;
    }

    .kia-model-text {
        text-align: center;
    }

    .kia-model-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-section {
        padding: 0.75rem; /* Further reduced padding */
        margin: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        text-align: left;
        margin-bottom: 0.3rem;
    }

    .form-group select,
    .form-group input {
        width: 100%;
        padding: 0.4rem; /* Further reduced padding */
        font-size: clamp(0.65rem, 1.8vw, 0.75rem); /* Smaller font */
    }

    .form-group .btn-primary,
    .form-group .btn-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.3rem;
        padding: 0.4rem; /* Further reduced padding */
        font-size: clamp(0.65rem, 1.8vw, 0.75rem); /* Smaller font */
    }

    .form-success i {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem); /* Smaller icon */
    }

    .form-success h3 {
        font-size: clamp(0.9rem, 2.5vw, 1rem); /* Smaller font */
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .rating-cards {
        grid-template-columns: 1fr;
    }

    .rating-section {
        margin-top: 1rem;
    }

    .sticky-call-footer a {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    .scroll-top {
        bottom: 5.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .call-now-button {
        width: 3rem;
        height: 3rem;
        bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .kia-header {
        padding: 1.5rem 1rem;
    }

    .kia-header h1 {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
    }

    .kia-models-section {
        margin: 0 0.5rem;
        padding: 0.5rem;
        max-height: 350px;
    }

    .form-section {
        padding: 0.5rem; /* Further reduced padding */
        margin: 0 0.5rem;
    }

    .form-section h2 {
        font-size: clamp(1rem, 3vw, 1.2rem); /* Smaller font */
    }

    .form-group select,
    .form-group input {
        font-size: clamp(0.6rem, 1.8vw, 0.7rem); /* Smaller font */
        padding: 0.3rem; /* Further reduced padding */
    }

    .form-group .btn-primary,
    .form-group .btn-secondary {
        padding: 0.3rem; /* Further reduced padding */
        font-size: clamp(0.6rem, 1.8vw, 0.7rem); /* Smaller font */
    }

    .form-success p {
        max-width: 95%;
        font-size: clamp(0.6rem, 1.8vw, 0.7rem); /* Smaller font */
    }

    .instant-support {
        padding: 0.75rem 1rem;
        margin: 1rem 0.5rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .phone-number {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .kia-content-wrapper {
        gap: 1.5rem;
    }

    .kia-models-section {
        padding: 1rem;
        max-height: 450px;
    }

    .form-section {
        padding: 1rem;
        max-width: 300px; /* Slightly smaller for tablet */
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.form-group select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .form-section {
        width: 100%;
        margin: 0 0.5rem;
        padding: 0.75rem;
        box-sizing: border-box;
    }

    .form-group select,
    .form-group input {
        width: 100%;
        max-width: 100%;
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        padding: 0.4rem;
    }

    .form-group select option {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 0.5rem;
    }

    .form-group select,
    .form-group input {
        font-size: clamp(0.6rem, 1.8vw, 0.7rem);
        padding: 0.3rem;
    }
}


