/* BASIC RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mda-blue: #485CC7;
    --mda-gold: #f1b434;
    --mda-red: #E64560;
    --mda-green: #5DD9C2;
    --mda-purple: #4A327D;
    --mda-tan: #EBE4E4;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --text-color: #333;
    --white: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 50px;
    width: auto;
}

.pilot-label {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--mda-blue);
    white-space: nowrap;
}

.contact-button {
    background: var(--mda-gold);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}

.contact-button:hover {
    opacity: 0.9;
}

/* STICKY NAV (OPTIONAL) */
.sticky-nav {
    background: var(--mda-tan);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 81px; /* Height of header */
    z-index: 99;
}

.sticky-nav a {
    margin: 0 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.sticky-nav a:hover {
    color: var(--mda-blue);
}

/* HERO SECTION */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--mda-blue);
}

.subtitle {
    font-size: 1.3em;
    color: var(--mda-gold);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero p {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background: var(--mda-blue);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* PILOT DETAILS BOX (in hero section) */
.hero .pilot-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.hero .pilot-details p {
    font-size: 0.9em !important;
    margin-bottom: 8px !important;
    line-height: 1.4;
    color: #495057;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.hero .pilot-details p:last-child {
    margin-bottom: 0 !important;
}

.hero .pilot-details strong {
    color: var(--mda-blue);
    font-weight: 600;
}

/* MESSAGE FROM TEAM SECTION - LEADERSHIP BIO STYLE */
.message-from-team {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.message-from-team h2 {
    font-size: 1.8em;
    text-align: center;
    color: var(--mda-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.section-intro a {
    color: var(--mda-blue);
    text-decoration: none;
    font-weight: 600;
}

.section-intro a:hover {
    text-decoration: underline;
}

/* LEADERSHIP GRID - 2 COLUMNS, 1 ROW */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BIO CARD */
.bio-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bio-card:hover {
    border-color: #ccc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* BIO PHOTO */
.bio-photo {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mda-gold);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mda-blue) 0%, var(--mda-purple) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 auto;
    border: 3px solid var(--mda-gold);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* BIO INFO */
.bio-info h3 {
    font-size: 0.95em;
    color: var(--mda-blue);
    margin-bottom: 4px;
    font-weight: 600;
}

.bio-title {
    font-size: 0.7em;
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 28px;
}

.bio-text {
    font-size: 0.8em;
    line-height: 1.4;
    color: var(--text-color);
    text-align: left;
}

/* TEAM FOOTER */
.team-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid var(--mda-gold);
    margin-top: 10px;
}

.team-footer p {
    font-size: 1em;
    margin-bottom: 6px;
    color: var(--text-color);
}

.team-footer .signature {
    font-style: italic;
    color: var(--mda-blue);
    font-size: 1.05em;
    font-weight: 600;
    margin-top: 8px;
}

/* BENEFITS SECTION */
.benefits {
    padding: 60px 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--mda-blue);
    margin: 0;
}

.benefits h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.benefits ul {
    list-style: none;
    padding-left: 0;
}

.benefits li {
    padding: 15px;
    margin-bottom: 15px;
    background: var(--light-gray);
    font-size: 1.1em;
}

.privacy-note {
    margin-top: 30px;
    padding: 20px;
    background: #fdf2f4;
    border: 1px solid var(--mda-red);
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    color: var(--mda-red);
}

/* HOW IT WORKS */
.how-it-works {
    padding: 60px 0;
    background: var(--light-gray);
}

.how-it-works h2 {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
}

.step {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.step-number {
    background: var(--mda-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.step-content ul {
    margin: 10px 0 10px 20px;
}

.step-content ul li {
    margin-bottom: 5px;
}

.pilot-details {
    margin-top: 40px;
    padding: 25px;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid var(--mda-gold);
    display: flex;
    gap: 40px;
    justify-content: center;
}

.pilot-details p {
    margin: 0;
    font-size: 1.05em;
}

.vendor-note {
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* ENROLLMENT FORM */
.enrollment-form {
    padding: 60px 0;
}

.enrollment-form h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.form-warning-box {
    background: #fff3cd;
    border: 3px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.form-warning-box p {
    margin: 0;
    color: #856404;
    font-size: 1em;
    line-height: 1.5;
}

.form-warning-box p:first-child {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.form-warning-box a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.form-warning-box a:hover {
    color: #533f03;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group.checkbox label {
    display: flex;
    align-items: start;
    gap: 10px;
    font-weight: normal;
}

.form-group.checkbox input[type="checkbox"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.submit-button {
    width: 100%;
    background: var(--mda-blue);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    opacity: 0.9;
}

.loading-message {
    display: none;
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: #e7f3ff;
    border: 2px solid var(--mda-blue);
    border-radius: 8px;
}

.loading-text {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--mda-blue);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.message {
    display: none;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    margin-top: 30px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.success-message h2 {
    color: var(--mda-blue);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.personal-message {
    font-size: 1.1em;
    line-height: 1.7;
    color: #155724;
    margin: 15px 0;
}

.message-signature {
    margin-top: 30px;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.6;
    color: #155724;
    border-top: 2px solid #c3e6cb;
    padding-top: 20px;
}

.message-signature strong {
    color: var(--mda-blue);
    font-size: 1.1em;
}

.team-label {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
}

.waitlist-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.enrollment-details {
    margin-top: 20px;
    padding: 20px;
    background: rgba(21, 87, 36, 0.1);
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.enrollment-details p {
    margin: 10px 0;
}

.enrollment-url-display {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #155724;
    border-radius: 5px;
    text-align: center;
}

.enrollment-url {
    color: #155724;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
    font-size: 1em;
    display: inline-block;
}

.enrollment-url:hover {
    color: #0d3d1a;
    text-decoration: none;
}

.confirmation-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* FAQ */
.faq {
    padding: 60px 0;
    background: var(--light-gray);
}

.faq h2 {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* FOOTER */
footer {
    background: var(--mda-purple);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-section {
        flex-direction: column;
        gap: 8px;
    }

    .pilot-label {
        font-size: 0.95em;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .sticky-nav {
        padding: 10px 0;
        font-size: 0.9em;
        top: 0; /* Stick to top on mobile since header might stack */
    }

    .sticky-nav a {
        margin: 0 10px;
        font-size: 0.85em;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .step-content h3 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .step-content p {
        font-size: 0.95em;
        text-align: left;
        margin-bottom: 10px;
    }

    .step-content p:last-child {
        margin-bottom: 0;
    }

    .step-content ul {
        text-align: left;
        margin: 10px 0 10px 15px;
    }

    .step-content ul li {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .how-it-works h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        height: 40px;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-card {
        padding: 20px;
    }

    .photo-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.2em;
        border: 3px solid var(--mda-gold);
    }

    .bio-info h3 {
        font-size: 1em;
    }

    .bio-title {
        font-size: 0.7em;
        min-height: auto;
    }

    .bio-text {
        font-size: 0.8em;
    }

    .team-footer p {
        font-size: 0.95em;
    }

    .team-footer .signature {
        font-size: 1em;
    }

    /* Hero section pilot-details */
    .hero .pilot-details {
        padding: 8px;
        margin: 15px 0;
        font-size: 0.85em;
        border-radius: 6px;
    }

    .hero .pilot-details p {
        font-size: 0.7em !important;
        margin-bottom: 5px !important;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .hero .pilot-details strong {
        display: inline;
        word-break: break-word;
    }
    
    /* How it works section pilot-details */
    .how-it-works .pilot-details {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-top: 30px;
    }
    
    .how-it-works .pilot-details p {
        font-size: 0.9em !important;
    }
    
    .container {
        padding: 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
}
