* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --canada-red: #FF0000;
    --canada-white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #555555;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--canada-white);
    border-bottom: 3px solid var(--canada-red);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.flag-container {
    flex-shrink: 0;
}

.flag {
    width: 60px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Main content */
.main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.hero {
    margin-bottom: 3rem;
}

.hero-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Form */
.form-section {
    margin-bottom: 3rem;
}

.application-form {
    background: var(--canada-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--canada-red);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--canada-red);
    color: var(--canada-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background: #cc0000;
}

.submit-btn:active {
    transform: scale(0.98);
}

.form-actions {
    margin-top: 0.5rem;
}

.change-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--canada-red);
    border: 2px solid var(--canada-red);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.change-btn:hover {
    background: var(--canada-red);
    color: var(--canada-white);
}

input:read-only {
    background: #f9f9f9;
    cursor: default;
}

/* Minister section */
.minister-section {
    margin-top: 3rem;
}

.minister-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.minister-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--canada-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.minister-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.minister-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minister-info {
    flex: 1;
}

.minister-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.minister-quote {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--canada-white);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--canada-red);
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-canada {
    font-weight: 600;
    font-size: 1rem;
}

.flag-small {
    width: 40px;
    height: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--canada-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.is-open .modal {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--canada-red);
    color: var(--canada-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .header-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .flag {
        width: 48px;
        height: 24px;
    }

    .main {
        padding: 2rem 1rem;
    }

    .hero-text {
        font-size: 1.25rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .application-form {
        padding: 1.5rem;
    }

    .minister-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .header-title {
        font-size: 1rem;
    }

    .flag {
        width: 56px;
        height: 28px;
    }

    .minister-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 380px) {
    .header-title {
        font-size: 0.9rem;
    }

    .modal {
        padding: 1.5rem;
    }
}
