/* ========================================
   COMPLETE FIXED CSS - ALL BUGS RESOLVED
   ======================================== */

/* Prevent body shake when modal opens */
.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333333;
    overflow-x: hidden;
    transition: padding-right 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Clash Display', sans-serif;
}
        
body, p, span, label, input, button {
    font-family: 'Satoshi', sans-serif;
}
        
        
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c7a7b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    width: 130px;
    height: auto;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    position: relative;
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
}

.nav-menu a:hover {
    background: rgba(44, 122, 123, 0.1);
    color: #2c7a7b;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-secondary {
    background: transparent;
    color: #0B4650;
    border: 2px solid #0B4650;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #0B4650;
    color: white;
    transform: translateY(-1px);
}

.btn-primary {
    background: #2c7a7b;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #0B4650;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #2c7a7b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    padding: 0;
}

.mobile-menu li {
    margin: 1.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu a:hover {
    background: rgba(44, 122, 123, 0.1);
    color: #2c7a7b;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

.mobile-buttons .btn-secondary,
.mobile-buttons .btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px 25px;
    font-size: 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(44, 122, 123, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(171, 235, 176, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a202c;
}

.hero-text .highlight {
    color: #ABEB00;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

.commission-highlight {
    background: #ABEB00;
    color: #1a202c;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(171, 235, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta {
    background: #2c7a7b;
    color: white;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(44, 122, 123, 0.2);
}

.btn-cta:hover {
    background: #0B4650;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(11, 70, 80, 0.25);
}

.btn-cta-secondary {
    background: transparent;
    color: #0B4650;
    border: 2px solid #0B4650;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background: #0B4650;
    color: white;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-visual {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c7a7b;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a5568;
    font-weight: 500;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.benefit-card {
    background: #f8fafc;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #ABEB00;
    background: white;
    box-shadow: 0 15px 40px rgba(171, 235, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: #2c7a7b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.benefit-card:hover .benefit-icon {
    background: #ABEB00;
    color: #1a202c;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
    padding: 100px 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #2c7a7b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.3);
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 1.5rem 0 1rem;
}

.step-card p {
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   SUPPORT SECTION
   ======================================== */

.support {
    padding: 100px 0;
    background: white;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.support-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.support-info p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(44, 122, 123, 0.05);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: #2c7a7b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.2rem;
}

.contact-details span {
    color: #4a5568;
    font-size: 0.9rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px !important;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Clash Display', sans-serif;
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #2c7a7b;
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #2c7a7b 0%, #0B4650 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    color: #a0aec0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ABEB00;
}

/* ========================================
   MODAL STYLES - ALL ISSUES FIXED
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(113, 128, 150, 0.1);
    z-index: 10;
}

.close-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    transform: scale(1.1);
}

.modal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-right: 30px;
}

/* ========================================
   FORM STYLES - ALL ISSUES FIXED
   ======================================== */

.form-group {
    margin-bottom: 1.1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #1a202c;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px !important;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: 'Clash Display', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #2c7a7b;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

/* PASSWORD FIELD - FIXED TO KEEP EYE ICON IN PLACE */
.password-field {
    position: relative;
    margin-bottom: 0;
    display: block;
}

.password-field input {
    width: 100%;
    padding: 11px 42px 11px 12px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 11px;
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.3s ease;
    z-index: 2;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #2c7a7b;
}

/* ERROR MESSAGE STYLING - PROPERLY ALIGNED */
.error-message,
.form-group .error,
.password-field + .error-message,
.password-field ~ .error,
input.error + .error-text,
.form-error {
    display: block;
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.3;
    padding-left: 2px;
    position: relative;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

/* Input with error state */
input.error,
input.has-error,
input:invalid.touched {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

/* Password field with error */
.password-field input.error {
    border-color: #e53e3e;
}

/* Form group with error gets extra bottom margin */
.form-group.has-error {
    margin-bottom: 1.1rem;
}

/* ========================================
   CHECKBOX STYLES - FIXED FOR MOBILE
   ======================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    margin-top: 1px;
    flex-shrink: 0;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    cursor: pointer;
    accent-color: #2c7a7b;
    border: 2px solid #cbd5e0;
    border-radius: 3px;
    background: white;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #2c7a7b;
    border-color: #2c7a7b;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.checkbox-label a {
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: #0B4650;
}

/* ========================================
   FORM BUTTON
   ======================================== */

.form-btn {
    width: 100%;
    background: #2c7a7b;
    color: white;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    font-family: 'Clash Display', sans-serif;
}

.form-btn:hover {
    background: #0B4650;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.3);
}

.form-btn:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: #4a5568;
    font-weight: 400;
    font-size: 0.85rem;
}

.form-footer a {
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    color: #ABEB00;
    text-decoration: underline;
}

/* ========================================
   MOBILE RESPONSIVE - ALL DEVICES
   ======================================== */

@media (max-width: 768px) {
    .nav-menu,
    .nav-buttons {
        display: none;
    }

    .menu-toggle,
    .mobile-nav {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .support {
        padding: 60px 0;
    }

    .support-content {
        display: block;
    }

    .support-info {
        margin-bottom: 3rem;
    }

    .support-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .support-info p {
        font-size: 1rem;
        text-align: center;
    }

    .contact-methods {
        margin-bottom: 3rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* MODAL MOBILE FIXES */
    .modal-content {
        padding: 1.5rem 1.2rem;
        margin: 15px;
        max-width: 380px;
        width: calc(100% - 30px);
    }

    .modal-content h2 {
        font-size: 1.35rem;
        margin-bottom: 1.2rem;
        padding-right: 25px;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .form-group input {
        padding: 10px 11px;
        font-size: 16px !important;
    }

    /* Password field mobile */
    .password-field input {
        padding: 10px 40px 10px 11px !important;
    }
    
    .password-toggle {
        top: 10px;
        right: 11px;
    }

    .checkbox-group {
        gap: 0.5rem;
        margin-bottom: 0.9rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px;
        min-height: 18px;
    }

    .checkbox-label {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .form-btn {
        padding: 11px;
        font-size: 0.95rem;
        margin-top: 0.6rem;
    }

    .form-footer {
        margin-top: 0.8rem;
        font-size: 0.8rem;
    }

    .close-btn {
        width: 26px;
        height: 26px;
        font-size: 1.3rem;
        top: 0.7rem;
        right: 1rem;
    }

    .error-message,
    .form-group .error {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.3rem 1rem;
        max-width: 340px;
        width: calc(100% - 20px);
        margin: 10px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group input {
        padding: 9px 10px;
    }

    /* Password field extra small mobile */
    .password-field input {
        padding: 9px 38px 9px 10px !important;
    }
    
    .password-toggle {
        top: 9px;
        right: 10px;
    }

    .checkbox-group {
        margin-bottom: 0.8rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        min-height: 16px;
    }

    .checkbox-label {
        font-size: 0.75rem;
    }

    .form-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .close-btn {
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
    }
}

/* ========================================
   PREVENT INPUT ZOOM ON MOBILE
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="color"],
textarea,
select {
    font-size: 16px !important;
    transform-origin: left top;
    transform: scale(1);
}

/* Force minimum font size for all form elements */
input, textarea, select, button {
    font-size: max(16px, 1rem) !important;
}

/* Target all possible form containers */
form input,
form textarea,
form select,
.modal input,
.modal textarea,
.modal select,
.popup input,
.popup textarea,
.popup select,
.overlay input,
.overlay textarea,
.overlay select,
div[class*="modal"] input,
div[class*="modal"] textarea,
div[class*="modal"] select,
div[id*="modal"] input,
div[id*="modal"] textarea,
div[id*="modal"] select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Additional mobile-specific properties */
@media screen and (max-width: 1024px) {
    input, textarea, select {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        zoom: 1;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* Ensure consistent behavior across all mobile browsers */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific */
    input, textarea, select {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* Android Chrome specific */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Global override for any missed inputs */
* input,
* textarea,
* select {
    font-size: max(16px, 1rem) !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent flash of unstyled content */
body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}