/* =====================================
   GLOBAL STYLES
===================================== */

:root {
    --navy: #061333;
    --navy-light: #10264c;
    --orange: #ff8a00;
    --orange-light: #ffb347;
    --red: #f52d38;
    --white: #ffffff;
    --text-light: #dce5f5;
    --muted: #a9b6cc;
    --border: rgba(255, 255, 255, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}


/* =====================================
   HERO
===================================== */

.hero {
    padding: 75px 20px 60px;
    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 138, 0, 0.25),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #101d48,
            #163c67,
            #061333
        );
}

.hero-content {
    max-width: 850px;
    margin: auto;
}

.eyebrow {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 15px 0;
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 1.05;
    font-weight: 900;
    font-style: italic;
    text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--orange);
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    font-weight: 900;
    margin: 25px 0 10px;
    text-transform: uppercase;
}

.hero-description {
    max-width: 650px;
    margin: auto;
    color: var(--text-light);
}


/* =====================================
   MAIN CONTAINER
===================================== */

.container {
    width: min(100% - 32px, 850px);
    margin: -20px auto 0;
    position: relative;
}

.card {
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: var(--orange);
    margin-top: 0;
}


/* =====================================
   POSTER
===================================== */

.poster-section {
    margin-bottom: 25px;
}

.event-poster {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(255, 138, 0, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}


/* =====================================
   EVENT DETAILS
===================================== */

.event-detail {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.detail-label {
    color: var(--orange);
    font-weight: 800;
    font-size: 0.85rem;
}

.detail-value {
    font-weight: 600;
}

.cause-banner {
    background: rgba(255, 138, 0, 0.1);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 18px;
    margin-top: 25px;
}

.cause-banner h3 {
    color: var(--orange);
    margin-top: 0;
    margin-bottom: 5px;
}

.cause-banner p {
    margin-bottom: 0;
}


/* =====================================
   HERITAGE 4 NOTICE
===================================== */

.notice-card {
    margin-bottom: 25px;
    padding: 25px;

    background: linear-gradient(
        135deg,
        rgba(245, 45, 56, 0.18),
        rgba(255, 138, 0, 0.1)
    );

    border: 1px solid rgba(255, 138, 0, 0.65);
    border-radius: 16px;
}

.notice-label {
    color: var(--orange);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.notice-card h2 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.notice-card p {
    color: var(--text-light);
}


/* =====================================
   REGISTRATION FORM
===================================== */

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 2rem;
    margin: 5px 0;
}

.section-heading > p:last-child {
    color: var(--muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group label span {
    color: var(--red);
}

input,
select {
    width: 100%;
    padding: 14px 15px;

    color: var(--white);
    background: #07142d;

    border: 1px solid #354968;
    border-radius: 9px;

    font-size: 1rem;
}

input:focus,
select:focus {
    outline: 2px solid var(--orange);
    border-color: var(--orange);
}

input::placeholder {
    color: #8292ac;
}

select {
    cursor: pointer;
}

input[type="file"] {
    padding: 12px;
}

input[type="file"]::file-selector-button {
    background: var(--orange);
    border: none;
    border-radius: 6px;
    padding: 9px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 700;
}

small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}


/* =====================================
   PAYMENT PANEL
===================================== */

.payment-panel {
    padding: 22px;
    margin-bottom: 25px;

    background: #07142d;
    border: 1px solid rgba(255, 138, 0, 0.4);
    border-radius: 14px;
}

.payment-panel h3 {
    color: var(--orange);
    margin-top: 0;
}

.payment-panel h4 {
    color: var(--orange-light);
    margin-bottom: 15px;
}

.qr-container {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.qr-code {
    width: min(100%, 300px);
    margin: 20px auto;
    padding: 10px;

    background: var(--white);
    border-radius: 12px;
}

.bank-details {
    margin-top: 25px;
}

.bank-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;

    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.bank-row span {
    color: var(--muted);
    font-size: 0.9rem;
}

.bank-row strong {
    overflow-wrap: anywhere;
}

.payment-reminder {
    background: rgba(255, 138, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
}

.payment-reminder strong {
    color: var(--orange);
}

.payment-reminder p:last-child {
    margin-bottom: 0;
}


/* =====================================
   WAIVER
===================================== */

.waiver-box {
    background: #07142d;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin: 30px 0;
}

.waiver-box h3 {
    color: var(--orange);
    margin-top: 0;
}

.waiver-box p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
    cursor: pointer;
    font-weight: 700;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--orange);
}


/* =====================================
   BUTTON
===================================== */

.submit-button {
    display: block;
    width: 100%;

    padding: 18px 20px;

    background: linear-gradient(
        135deg,
        var(--orange),
        #ff5e00
    );

    color: #07142d;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;

    transition: transform 0.2s, opacity 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.error-message {
    color: #ff7777;
    font-weight: 700;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 138, 0, 0.1);
}


/* =====================================
   FOOTER
===================================== */

.footer {
    padding: 35px 15px;
    text-align: center;
    color: var(--muted);
}

.footer h3 {
    color: var(--white);
    letter-spacing: 2px;
}

.copyright {
    font-size: 0.8rem;
}


/* =====================================
   MOBILE RESPONSIVENESS
===================================== */

@media (max-width: 600px) {

    .hero {
        padding: 55px 18px 45px;
    }

    .container {
        width: calc(100% - 20px);
    }

    .card {
        padding: 20px;
        border-radius: 14px;
    }

    .event-detail {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .bank-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .notice-card {
        padding: 20px;
    }

    .submit-button {
        font-size: 0.9rem;
    }

}

/* Selected payment receipt files */

.selected-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.selected-file-info {
    min-width: 0;
    flex: 1;
}

.selected-file-name {
    display: block;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
}

.selected-file-size {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.remove-file-button {
    flex-shrink: 0;
    padding: 7px 12px;
    color: #fff;
    background: #b42318;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.remove-file-button:hover {
    background: #d92d20;
}

.remove-file-button:focus-visible {
    outline: 2px solid #ff8a00;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .selected-file-item {
        padding: 10px;
    }

    .remove-file-button {
        padding: 8px;
    }
}