/* Base styles */
:root {
    --color-primary-blue: #004B87;
    --color-primary-orange: #FF8C00;
    --color-secondary-blue: #E6F0F7;
    --color-secondary-orange: #FFF3E6;
    --color-text-dark: #1A1A1A;
    --color-text-gray: #4B5563;
    --color-background: #FFFFFF;
    --touch-target-size: 44px;
}

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Fix for mobile Safari */
html {
    height: -webkit-fill-available;
}

.app {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Section padding for scroll targets */
section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on mobile */
    }
    
    button {
        min-height: var(--touch-target-size);
        min-width: var(--touch-target-size);
    }

    section[id] {
        scroll-margin-top: 72px;
    }
}

/* Default button style */
.btn-primary {
    background-color: var(--color-primary-blue);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: var(--touch-target-size);
}

.btn-primary:hover {
    background-color: #003666;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Quiz CTA button style with gradient */
.btn-quiz-cta {
    background-image: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    background-size: 300% 300%;
    animation: animatedgradient 3s ease infinite;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    min-height: var(--touch-target-size);
}

.btn-quiz-cta:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
}

.btn-quiz-cta:active {
    transform: translateY(0);
}

/* Secondary button style */
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: var(--touch-target-size);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-blue);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

@keyframes animatedgradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    /* Ensure proper tap targets on mobile */
    a, button {
        padding: 12px;
        margin: 4px;
    }
    
    /* Prevent text from being too small */
    p, div {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Fix for iOS form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* Fix for iOS scrolling */
.scroll-container {
    -webkit-overflow-scrolling: touch;
}

/* Fix for sticky hover on mobile */
@media (hover: hover) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-quiz-cta:hover {
        transform: translateY(-2px);
    }
}

@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-quiz-cta:hover {
        transform: none;
    }
}
