:root {
    --color-primary: #7f1d1d;
    --color-primary-light: #b91c1c;
    --color-accent: #fcd34d;
    --color-accent-dark: #eab308;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #111827;
    --color-border: #e2e8f0;
    --color-text-dark: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-light);
}

main {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-brand:hover {
    opacity: 0.9;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    font-style: italic;
    color: #fef08a;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 0.15rem;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0.25rem;
    border-radius: 0.75rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background-color: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-link-active {
    background-color: #fde68a;
    color: var(--color-primary);
}

.nav-link-active:hover {
    background-color: #fde68a;
    color: var(--color-primary);
}

footer {
    background-color: var(--color-bg-dark);
    color: #cbd5e1;
    padding: 3rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-org-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
}

.footer-charity-no {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-website-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fcd34d;
    display: inline-block;
    transition: color 0.2s ease;
}

.footer-website-link:hover {
    color: white;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 90rem;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-copyright {
    margin: 0;
}

.container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.content-box {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    transition: text-decoration 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: var(--font-family);
}

.back-button:hover {
    text-decoration: underline;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: #fef2f2;
    color: var(--color-primary);
}

.feature-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-section-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.feature-section-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-section-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-box {
    background-color: rgba(127, 29, 29, 0.05);
    border: 1px solid #fee2e2;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-family);
}

.button-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-primary:hover {
    background-color: var(--color-primary-light);
}

.button-primary:active {
    transform: scale(0.95);
}

.accordion {
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    background-color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    transition: background-color 0.2s ease;
    font-family: var(--font-family);
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header.open {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: var(--color-primary);
}

.accordion-content {
    padding: 1.5rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: none;
    font-size: 0.875rem;
    line-height: 1.8;
    opacity: 0.9;
}

.accordion-content.open {
    display: block;
}

.accordion-chevron {
    flex-shrink: 0;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    opacity: 0.3;
    transition: transform 0.2s ease;
}

.accordion-header.open .accordion-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.1);
}

.form-textarea {
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }

    .feature-section {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-box {
    background-color: var(--color-success-light);
    border: 1px solid var(--color-success);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.success-box h2 {
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.success-box p {
    color: #166534;
    margin: 0;
}

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 3rem 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3), rgba(127, 29, 29, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background-color: var(--color-accent);
    color: black;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.05);
}

.hero-cta:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .header-container {
        padding: 1rem 2rem;
    }

    .header-nav {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 6rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.form-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.form-section-info {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section-info h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.form-section-info p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.form-section-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-section-info-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.form-section-info-item-text p:first-child {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0 0 0.25rem 0;
}

.form-section-info-item-text p:last-child {
    font-weight: 700;
    margin: 0;
}

.form-section-form {
    background-color: white;
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .form-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.progress-island {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
