/* Global Styles */
:root {
    --primary-color: #ffdf4d; /* Yellow color matching the header */
    --secondary-color: #ff9900;
    --accent-color: #0066cc;
    --text-color: #1a1a1a;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #4a4a4a;
    --border-radius: 15px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --nav-height: 70px; /* Height for the fixed navigation */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Performance optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-top: var(--nav-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container takes full available width */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin: 0 auto 20px;
    max-width: 90%;
}

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

h3 {
    font-size: 1.5rem;
    color: #e68900; /* Darker orange for better contrast */
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 80px 0;
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1001;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-color);
}

.nav-brand img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    /* Prevent layout shifts */
    aspect-ratio: 1/1;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Header */
header {
    background-color: #ffdf4d;
    padding: 40px 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    /* Optimize for LCP */
    content-visibility: auto;
    contain: layout style paint;
    /* Preserve aspect ratio */
    object-fit: contain;
}

.logo-subtitle {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background-color: var(--secondary-color);
    color: white;
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.cta-primary:hover {
    color: white !important;
    background-color: #e68900;
}

.features {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    transition: var(--transition);
    will-change: transform;
    /* Performance optimizations */
    transform: translateZ(0); /* Force hardware acceleration */
    contain: layout style paint;
    content-visibility: auto;
    /* Prevent layout shifts */
    aspect-ratio: 3/2;
    display: block;
    /* Force dimensions to prevent shifts */
    min-height: 200px;
    background-color: #f5f5f5;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.game-modes {
    padding: 80px 0;
}

.modes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.mode {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.mode ul {
    list-style: none;
    margin-top: 20px;
}

.mode li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.mode li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.benefits {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.benefits h2 {
    margin-bottom: 50px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.benefit h3 {
    color: #0052a3; /* Darker blue for better contrast */
    margin-bottom: 15px;
}

.download {
    padding: 80px 0;
    text-align: center;
}

.devices-image {
    margin: 40px 0;
}

.devices-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    aspect-ratio: 7/4;
    display: block;
    margin: 0 auto;
}

.download-options {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-option {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.download-button:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.coming-soon {
    background-color: var(--dark-gray) !important;
    cursor: not-allowed !important;
}

.coming-soon:hover {
    background-color: var(--dark-gray) !important;
    color: white !important;
    transform: none !important;
}

.platform-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.platform-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.platform-list li:last-child {
    border-bottom: none;
}

.platform-list strong {
    color: var(--accent-color);
}

.faq {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
}

.faq-item {
    background-color: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.faq-item h3 {
    padding: 25px 30px;
    margin: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    position: relative;
    font-size: 1.2rem;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item p {
    padding: 0 30px 25px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-item.active p {
    max-height: 200px;
    padding: 25px 30px;
}

.faq-item.active h3::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.contact {
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 40px;
    text-align: left;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 204, 153, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group:hover {
    background-color: rgba(255, 223, 77, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--accent-color);
    min-width: 16px;
    min-height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

footer {
    background-color: var(--text-color);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo div h4 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 1.2rem;
}

.footer-logo div p {
    margin: 0;
    font-size: 0.9rem;
    color: #cccccc;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #cccccc;
    font-size: 0.9rem;
}

/* Social Media Links Styling */
.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-links a svg {
    flex-shrink: 0;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* Desktop */
@media (min-width: 993px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        text-align: left;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }
    
    .hero-logo {
        max-height: 250px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .modes-container {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        max-width: 500px;
    }
    
    .download-option {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .faq-list {
        margin-top: 30px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .feature-card img {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-top: var(--nav-height);
    }
    
    /* Mobile Navigation with Semi-Transparent White Background */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        z-index: 9999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 0;
        opacity: 1;
    }
    
    .nav-menu.active li {
        opacity: 1;
    }
    
    .nav-menu a {
        display: block;
        padding: 18px 32px;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-color);
        text-decoration: none;
        background: white;
        border: 2px solid #e6d7b3;
        border-radius: 16px;
        margin: 12px 0;
        min-width: 240px;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 3px 12px rgba(230, 215, 179, 0.3);
    }
    
    /* Remove the orange underline for mobile navigation */
    .nav-menu a:after {
        display: none;
    }
    
    /* Active element styling for mobile navigation */
    .nav-menu a.active {
        background: var(--primary-color);
        border-color: var(--secondary-color);
        color: var(--text-color);
        box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
        font-weight: 700;
        transform: scale(1.02);
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        transform: translateY(-2px) scale(1.02);
        background: var(--primary-color);
        border-color: var(--secondary-color);
        box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
        color: var(--text-color);
    }
    
    /* Touch feedback for mobile devices */
    @media (hover: none) and (pointer: coarse) {
        .nav-menu a:active {
            transform: translateY(-1px);
            transition: all 0.1s ease;
        }
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--text-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: var(--text-color);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .hero {
        gap: 30px;
        padding: 20px 0;
    }
    
    .hero-logo {
        max-height: 200px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .feature-card,
    .benefit,
    .mode {
        padding: 25px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo img {
        width: 50px;
        height: 50px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .benefit {
        padding: 25px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-list {
        margin-top: 30px;
    }
    
    .faq-item {
        margin-bottom: 15px;
    }
    
    .faq-item.active {
        margin-bottom: 15px;
    }
    
    .faq-item.active p {
        max-height: 300px;
    }
    
    .faq-item h3 {
        padding: 20px 25px;
        font-size: 1.1rem;
    }
    
    .faq-item.active h3::after {
        right: 25px;
    }
    
    .feature-card img {
        height: 160px;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .checkbox-group {
        align-items: flex-start;
        gap: 10px;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 2px;
        transform: scale(1.2);
        min-width: 16px;
        min-height: 16px;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 15px 0;
        gap: 25px;
    }
    
    .hero-logo {
        max-height: 160px;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card img {
        height: 140px;
    }
    
    .devices-image img {
        border-radius: 10px;
    }
    
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .footer-logo img {
        width: 45px;
        height: 45px;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-links a:hover {
        color: var(--primary-color);
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Center social media links on mobile */
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-links a {
        justify-content: center;
        width: fit-content;
    }
    
    .mode {
        padding: 20px;
    }
    
    .mode ul {
        margin-top: 15px;
    }
    
    .benefit {
        padding: 20px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .checkbox-group input[type="checkbox"] {
        transform: scale(1.3);
        min-width: 18px;
        min-height: 18px;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
    }
    
    .feature-card img {
        height: 120px;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-item.active {
        margin-bottom: 12px;
    }
    
    .faq-item.active p {
        max-height: 250px;
    }
    
    .faq-item h3 {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-item.active h3::after {
        right: 20px;
        font-size: 1.3rem;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUpBounce {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInClose {
    from {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(90deg) scale(1);
    }
}

.feature-card img {
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.5s);
}

.feature-card:hover img {
    animation-play-state: paused;
    transform: scale(1.05);
}

.touch-device .nav-menu a {
    padding: 15px 0;
}

.touch-device .feature-card {
    transition: none;
}

.touch-device .feature-card:active {
    transform: scale(0.98);
}

/* Success Modal Styles */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-modal h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-close {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.success-close:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}

/* Loading state for submit button */
.submit-button:disabled {
    background-color: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-button:disabled:hover {
    transform: none;
    background-color: var(--dark-gray);
}

/* Responsive styles for success modal */
@media (max-width: 768px) {
    .success-modal {
        padding: 30px 20px;
        margin: 10px;
        max-width: 90vw;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .info-modal {
        padding: 30px 20px;
        margin: 10px;
        max-width: 90vw;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .info-modal h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 25px 15px;
        margin: 5px;
        max-width: 95vw;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .success-modal h3 {
        font-size: 1.2rem;
    }
    
    .success-modal p {
        font-size: 0.9rem;
    }
    
    .info-modal {
        padding: 25px 15px;
        margin: 5px;
        max-width: 95vw;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .info-modal h3 {
        font-size: 1.2rem;
    }
    
    .info-modal p {
        font-size: 0.9rem;
    }
}

/* Info Modal Styles */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s ease;
}

.info-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    line-height: 1;
}

.info-modal h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-close {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.info-close:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}

/* Legal Modals */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.legal-modal .modal-content {
    background-color: white;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Fredoka', sans-serif;
}

.legal-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--light-gray);
    background: linear-gradient(135deg, var(--primary-color), #ffeb99);
    border-radius: 15px 15px 0 0;
}

.legal-modal .modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.legal-modal .modal-close {
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-family: Arial, sans-serif;
    position: relative;
}

.legal-modal .modal-close:hover {
    background-color: var(--primary-color);
    color: #333;
    transform: scale(1.1);
}

.legal-modal .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.6;
}

.legal-modal .modal-body h3 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-modal .modal-body p {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-modal .modal-body ul, 
.legal-modal .modal-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-modal .modal-body li {
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-modal .modal-body ul li {
    list-style-type: disc;
}

.legal-modal .modal-body ol li {
    list-style-type: decimal;
}

.legal-modal .modal-body strong {
    color: #333;
    font-weight: 600;
}

/* Mobile responsiveness for legal modals */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }
    
    .legal-modal .modal-content {
        max-width: 100%;
        margin: 20px auto;
    }
    
    .legal-modal .modal-header {
        padding: 20px;
    }
    
    .legal-modal .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .legal-modal .modal-body {
        padding: 20px;
        max-height: 75vh;
    }
    
    .legal-modal .modal-body h3 {
        font-size: 1.1rem;
    }
    
    .legal-modal .modal-body p, 
    .legal-modal .modal-body li {
        font-size: 0.9rem;
    }
    
    .legal-modal .modal-close {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
        padding: 0;
        margin: 0;
        line-height: 0;
    }
}

@media (max-width: 480px) {
    .legal-modal .modal-header {
        padding: 15px;
    }
    
    .legal-modal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .legal-modal .modal-body {
        padding: 15px;
        max-height: 80vh;
    }
    
    .legal-modal .modal-close {
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
        padding: 0;
        margin: 0;
        line-height: 0;
    }
} 