/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* CSS Variables - Matching main doughnut page */
:root {
    --primary-green: #299b8e;
    --primary-green-dark: #237a70;
    --primary-green-light: #3fb5a8;
    --secondary-yellow: #f7b801;
    --text-dark: #293340;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Scoped Reset & Base - Only affects apply page */
.apply-page * {
    box-sizing: border-box;
}

.apply-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.apply-page .container {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.apply-page section {
    padding: 3rem 0;
}

/* Typography */
.apply-page h1, 
.apply-page h2, 
.apply-page h3,
.apply-page h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.apply-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.apply-page h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.apply-page h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.apply-page h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.apply-page p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.apply-page .btn-primary, 
.apply-page .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-page .btn-primary {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.apply-page .btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-1px);
}

.apply-page .btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.apply-page .btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

/* Header Section */
.apply-header {
    background: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.apply-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.apply-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.deadline-notice {
    background: rgba(247, 184, 1, 0.1);
    border: 2px solid var(--secondary-yellow);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 2rem 0 0 0;
}

.deadline-notice p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Application Form Section */
.application-form-section {
    background: var(--bg-white);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.form-intro h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.form-intro p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.form-backup {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.backup-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Airtable Embed */
.airtable-embed {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.airtable-embed-iframe {
    width: 100%;
    min-height: 2000px;
    border: none;
    border-radius: var(--radius);
}

/* Support Section */
.support-section {
    background: var(--bg-white);
    text-align: center;
}

.support-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.support-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.support-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Info */
.footer-info {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.program-info,
.focus-areas,
.contact-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.footer-content h4 {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content li {
    padding: 0.25rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.footer-content li::before {
    content: '•';
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer-content a {
    color: var(--primary-green);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.tagline {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apply-page section {
        padding: 2rem 0;
    }

    .apply-page h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .apply-page h2 {
        font-size: 1.75rem;
    }

    .apply-page h3 {
        font-size: 1.5rem;
    }

    .header-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .form-container {
        margin: 0 1rem;
    }

    .form-intro {
        padding: 1.5rem;
    }

    .airtable-embed {
        padding: 0.5rem;
    }

    .airtable-embed-iframe {
        min-height: 1800px;
    }

    .support-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .support-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .support-actions > * {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 1rem;
    }

    .program-info,
    .focus-areas,
    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .apply-page .container {
        padding: 0 0.75rem;
    }

    .apply-page h1 {
        font-size: 1.75rem;
    }

    .header-content {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .form-container {
        margin: 0 0.5rem;
    }

    .airtable-embed-iframe {
        min-height: 1600px;
    }

    .footer-content {
        margin: 0 0.5rem;
    }

    .deadline-notice {
        padding: 0.75rem;
    }

    .deadline-notice p {
        font-size: 1rem;
    }
}