@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --gray-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header / Hero */
.hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    margin-bottom: 2rem;
}

.hero h1 {
    margin: 0 0 10px 0;
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Forms */
.form-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.form-section .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

label i {
    color: var(--primary-blue);
    margin-right: 5px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.cta-button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

/* Trust Section */
.trust-section {
    margin: 4rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.trust-box {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-blue);
}

.trust-box:hover {
    transform: translateY(-5px);
}

.trust-box i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.trust-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.trust-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.faq-item h3 i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Loader */
.hidden {
    display: none !important;
}

#loader {
    text-align: center;
    margin-top: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 86, 179, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results page specific adjustments */
.results-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    width: calc(33.333% - 1rem);
    min-width: 250px;
}

.blur-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blurred-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lock-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: 600;
}

.car-info {
    padding: 1.5rem;
    text-align: center;
}

.car-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.payment-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1.5rem 0;
}

.pay-button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }
    .form-section {
        margin-top: -2rem;
    }
}
