* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bright-snow: #fafafa;
    --alice-blue: #e3f2fd;
    --atomic-tangerine: #fa742c;
    --dim-grey: #686963;
    --muted-teal: #8aa29e;
    
    /* Color mappings */
    --primary-color: #fa742c; /* atomic-tangerine */
    --secondary-color: #8aa29e; /* muted-teal */
    --text-color: #686963; /* dim-grey */
    --light-bg: #e3f2fd; /* alice-blue */
    --white: #ffffff;
    --bg-snow: #fafafa; /* bright-snow */
    --border-color: #d0d0d0;
    --shadow: 0 2px 10px rgba(104, 105, 99, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #e3f2fd 0%, #8aa29e 50%, #fa742c 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

header {
    text-align: center;
    padding: 40px 20px;
    color: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

main {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e85a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 116, 44, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.features {
    margin-top: 60px;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--white);
    opacity: 0.8;
    width: 100%;
    box-sizing: border-box;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.error-message {
    background: #ffe8e0;
    color: #d84315;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--atomic-tangerine);
}

.success-message {
    background: #e0f0ed;
    color: #5a8a7f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--muted-teal);
}

/* Responsive Design - Mobile First Approach */

/* Base mobile styles (already defined above) */
/* Enhanced mobile styles for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    main {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
    }
    
    .features {
        margin-top: 40px;
    }
    
    .features h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .feature-grid {
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 14px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch target size */
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin: 10px 0;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
}

/* Small mobile to large mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 30px 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    main {
        padding: 35px 25px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 14px 35px;
    }
    
    .form-container {
        padding: 35px 30px;
    }
    
    .form-group input {
        font-size: 16px;
        min-height: 44px;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* Tablet portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 20px;
    }
    
    header {
        padding: 35px 20px;
    }
    
    .logo h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    main {
        padding: 50px 35px;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .form-container {
        max-width: 550px;
        padding: 40px 35px;
    }
    
    .btn {
        min-height: 48px;
        padding: 15px 40px;
    }
    
    .form-group input {
        min-height: 48px;
    }
}

/* Tablet landscape and small desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        padding: 20px;
    }
    
    main {
        padding: 55px 40px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Standard responsive breakpoint (768px and below) - General mobile */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    main {
        padding: 40px 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        min-height: 44px;
    }
    
    .form-container {
        margin: 10px;
        padding: 30px 25px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .features {
        margin-top: 40px;
    }
    
    .features h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    input, button, a {
        -webkit-tap-highlight-color: rgba(74, 144, 226, 0.2);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo h1 {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    header, footer {
        display: none;
    }
    
    main {
        box-shadow: none;
        padding: 20px;
    }
    
    .btn, .cta-buttons {
        display: none;
    }
}

