/* Base variables */
:root {
    --primary: #2C5282;
    --secondary: #4299E1;
    --spacing-base: 1rem;
    --navbar-height: 4rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 2rem) var(--spacing-base) var(--spacing-base);
    background: linear-gradient(rgba(44, 82, 130, 0.9), rgba(44, 82, 130, 0.8)),
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    padding: var(--spacing-base);
    margin: 0 auto;
}

.hero img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 var(--spacing-base);
    max-width: 500px;
    margin: 2rem auto 0;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.button.primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Referral Form Section */
.referral-form {
    padding: 3rem var(--spacing-base);
    background: white;
    position: relative;
    z-index: 1;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-base);
}

.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: calc(var(--navbar-height) + 3rem) var(--spacing-base) 3rem;
    }

    .hero img {
        width: 120px;
        height: 120px;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .button {
        width: auto;
        min-width: 200px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 1000px;
    }

    .form-container {
        padding: 2rem;
    }
}

/* Enhancement for larger screens */
@media (min-width: 1200px) {
    .hero {
        padding: calc(var(--navbar-height) + 4rem) var(--spacing-base) 4rem;
    }

    .form-grid {
        gap: 2rem;
    }
}

/* Utility classes for spacing and layout */
.full-width {
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Hover effects */
.button:hover {
    transform: translateY(-2px);
}

.button.primary:hover {
    background: var(--primary);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}