        :root {
    --green-dark: #004f35;
    --green: #086a49;
    --green-light: #68d2a8;
    --mint: #8ce5c0;

    --white: #ffffff;
    --cream: #f5faf7;

    --text: #17362b;
    --text-light: #60776e;

    --border: #dce9e3;

    --danger: #b42318;

    --shadow:
        0 18px 55px rgba(0, 79, 53, 0.10);

    --radius: 22px;

    --container: 900px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--cream);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


/* HEADER */

.waiver-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 5px 20px rgba(0, 79, 53, 0.05);
}


.waiver-header-inner {
    width: min(calc(100% - 40px), 1180px);

    min-height: 100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 28px;
}


.waiver-brand {
    display: flex;
    align-items: center;
}


.waiver-brand img {
    width: 225px;
    max-height: 84px;

    object-fit: contain;
}


.waiver-header-title {
    padding-left: 28px;

    border-left: 1px solid var(--border);
}


.waiver-header-title span {
    display: block;

    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}


.waiver-header-title strong {
    display: block;

    margin-top: 2px;

    color: var(--text);

    font-size: 20px;
    line-height: 1.2;
}


.waiver-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 19px;

    color: var(--green-dark);

    background: #e3f6ed;

    border: 1px solid #cceade;

    border-radius: 100px;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.waiver-header-link:hover {
    background: #d4f0e3;

    transform: translateY(-1px);
}


@media (max-width: 700px) {

    .waiver-header-inner {
        min-height: 82px;

        grid-template-columns: 1fr auto;

        gap: 14px;
    }


    .waiver-brand img {
        width: 155px;
    }


    .waiver-header-title {
        display: none;
    }


    .waiver-header-link {
        min-height: 40px;

        padding: 0 14px;

        font-size: 11px;
    }

}


/* PAGE */

.waiver-page {
    padding: 65px 0 100px;
}


.waiver-container {
    width: min(calc(100% - 30px), var(--container));

    margin: 0 auto;
}


/* INTRO */

.waiver-intro {
    max-width: 720px;

    margin: 0 auto 42px;

    text-align: center;
}


.section-label {
    display: block;

    margin-bottom: 8px;

    color: var(--green);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;
}


.waiver-intro h1 {
    margin: 0;

    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;

    letter-spacing: -2px;
}


.waiver-intro p {
    max-width: 620px;

    margin: 17px auto 0;

    color: var(--text-light);

    font-size: 17px;
}


/* FORM CARDS */

.form-card {
    margin-bottom: 22px;

    padding: 34px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 10px 35px rgba(0, 79, 53, 0.05);
}


.card-heading {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 28px;
}


.step-number {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    background: var(--green-dark);

    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
}


.card-heading h2 {
    margin: 0;

    font-size: 23px;
    line-height: 1.2;
}


.card-heading p {
    margin: 5px 0 0;

    color: var(--text-light);

    font-size: 14px;
}


/* FIELDS */

.form-group label,
.signature-label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 800;
}


.required {
    color: var(--danger);
}


.form-group input {
    width: 100%;
    height: 56px;

    padding: 0 16px;

    color: var(--text);

    background: white;

    border: 1px solid #cbdcd4;

    border-radius: 12px;

    outline: none;

    font-size: 16px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus {
    border-color: var(--green);

    box-shadow:
        0 0 0 4px rgba(8, 106, 73, 0.10);
}


.form-group input::placeholder {
    color: #94a79f;
}


.field-note {
    margin: 8px 0 0;

    color: var(--text-light);

    font-size: 12px;
}


/* WAIVER DOCUMENT */

.waiver-card {
    padding-bottom: 30px;
}


.waiver-document {
    overflow: hidden;

    border: 1px solid #cfded7;

    border-radius: 16px;

    background: #fbfdfc;
}


.waiver-document-header {
    padding: 24px;

    text-align: center;

    color: white;

    background: var(--green-dark);
}


.waiver-document-header strong,
.waiver-document-header span,
.waiver-document-header small {
    display: block;
}


.waiver-document-header strong {
    font-size: 17px;

    letter-spacing: 1.3px;
}


.waiver-document-header span {
    margin-top: 3px;

    font-size: 15px;
    font-weight: 700;
}


.waiver-document-header small {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.68);
}


.waiver-text {
    max-height: 560px;

    overflow-y: auto;

    padding: 30px;

    background: white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
    line-height: 1.75;

    scroll-behavior: smooth;
}


.waiver-text h3 {
    margin:
        26px
        0
        5px;

    color: var(--green-dark);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;
}


.waiver-text p {
    margin:
        0
        0
        15px;
}


.waiver-text ul {
    padding-left: 23px;
}


/* CHECKBOX */

.checkbox-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 18px;

    margin-top: 13px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 13px;

    cursor: pointer;
}


.checkbox-card input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.custom-checkbox {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    position: relative;

    border: 2px solid #a9c4b8;

    border-radius: 6px;

    background: white;

    transition:
        background 0.2s ease,
        border 0.2s ease;
}


.checkbox-card input:checked + .custom-checkbox {
    background: var(--green);

    border-color: var(--green);
}


.checkbox-card input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    left: 7px;
    top: 3px;

    width: 6px;
    height: 12px;

    border:
        solid white;

    border-width:
        0
        2px
        2px
        0;

    transform: rotate(45deg);
}


.checkbox-text {
    color: var(--text);

    font-size: 14px;
    line-height: 1.55;
}


/* SIGNATURE TABS */

.signature-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 24px;

    padding: 5px;

    background: #e7f1ec;

    border-radius: 14px;
}


.signature-tab {
    min-height: 48px;

    padding: 8px 14px;

    color: var(--green-dark);

    background: transparent;

    border: 0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}


.signature-tab.active {
    color: white;

    background: var(--green-dark);

    box-shadow:
        0 5px 15px rgba(0, 79, 53, 0.16);
}


.signature-panel {
    display: none;
}


.signature-panel.active {
    display: block;
}


/* DRAW SIGNATURE */

.signature-pad-wrap {
    position: relative;

    width: 100%;
    height: 230px;

    overflow: hidden;

    background:
        repeating-linear-gradient(
            0deg,
            #ffffff,
            #ffffff 37px,
            #edf3f0 38px
        );

    border: 2px solid #c8d9d1;

    border-radius: 14px;

    touch-action: none;
}


.signature-pad {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: block;

    cursor: crosshair;

    touch-action: none;
}


.signature-placeholder {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 1;

    transform: translate(-50%, -50%);

    width: 100%;

    padding: 20px;

    text-align: center;

    color: #91a49c;

    font-size: 14px;

    pointer-events: none;
}


.clear-signature {
    margin-top: 10px;

    padding: 8px 0;

    color: var(--green);

    background: transparent;

    border: 0;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}


/* TYPED SIGNATURE */

.typed-signature-preview {
    min-height: 110px;

    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    color: #9baaa4;

    background: #fafcfb;

    border: 1px solid var(--border);

    border-radius: 14px;

    text-align: center;

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size: 34px;
}


/* ERROR */

.form-error {
    display: none;

    margin: 0 0 18px;

    padding: 15px 17px;

    color: #842029;

    background: #f8d7da;

    border: 1px solid #f1aeb5;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
}


.form-error.show {
    display: block;
}


/* SUBMIT */

.submit-waiver-button {
    width: 100%;
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    background: var(--green-dark);

    border: 0;

    border-radius: 100px;

    font-size: 18px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(0, 79, 53, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.submit-waiver-button:hover {
    background: var(--green);

    transform: translateY(-2px);
}


.submit-waiver-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


.button-loading {
    display: none;
}


.submit-note {
    margin: 12px 0 0;

    text-align: center;

    color: var(--text-light);

    font-size: 12px;
}


/* SUCCESS SCREEN */

.success-screen {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #003d2a,
            #08714e
        );
}


.success-screen.active {
    display: flex;
}


.success-card {
    width: min(100%, 550px);

    padding: 50px 35px;

    text-align: center;

    background: white;

    border-radius: 28px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
}


.success-icon {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    color: white;

    background: var(--green);

    border-radius: 50%;

    font-size: 40px;
    font-weight: 900;
}


.success-label {
    color: var(--green);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;
}


.success-card h2 {
    margin: 6px 0;

    font-size: 39px;
    line-height: 1.1;
}


.success-card p {
    margin: 12px 0 25px;

    color: var(--text-light);

    font-size: 16px;
}


.new-waiver-button {
    width: 100%;
    min-height: 54px;

    color: white;

    background: var(--green-dark);

    border: 0;

    border-radius: 100px;

    font-weight: 800;

    cursor: pointer;
}


.success-card small {
    display: block;

    margin-top: 15px;

    color: #879890;
}



/* MOBILE */

@media (max-width: 650px) {

    .waiver-header-inner {
        min-height: 74px;
    }

    .waiver-logo img {
        width: 145px;
    }

    .back-link {
        padding: 9px 14px;

        font-size: 12px;
    }

    .waiver-page {
        padding-top: 45px;
    }

    .form-card {
        padding: 22px 18px;

        border-radius: 17px;
    }

    .card-heading {
        gap: 11px;
    }

    .step-number {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .card-heading h2 {
        font-size: 20px;
    }

    .waiver-text {
        max-height: 430px;

        padding: 21px;

        font-size: 14px;
    }

    .signature-tabs {
        grid-template-columns: 1fr;
    }

    .signature-pad-wrap {
        height: 210px;
    }

    .success-card {
        padding: 40px 24px;
    }

}
/* ========================================
   CURRENT EVENT
======================================== */

.current-event-bar {
    margin-bottom: 30px;

    padding: 18px 22px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 79, 53, 0.14);
}


.current-event-label {
    display: block;

    margin-bottom: 2px;

    color: var(--mint);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;
}


.current-event-bar strong {
    display: block;

    font-size: 18px;
}


.current-event-bar small {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
}



/* ========================================
   NO EVENT
======================================== */

.no-event-message {
    margin-bottom: 30px;

    padding: 30px;

    text-align: center;

    color: #842029;

    background: #f8d7da;

    border: 1px solid #f1aeb5;

    border-radius: 16px;
}


.no-event-message strong {
    display: block;

    font-size: 18px;
}


.no-event-message p {
    margin: 5px 0 0;
}



/* ========================================
   PARTICIPANTS
======================================== */

.participants-list {
    display: flex;
    flex-direction: column;

    gap: 15px;
}


.participant-row {
    display: grid;

    grid-template-columns: 1fr auto;

    align-items: end;

    gap: 12px;

    padding: 18px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 14px;
}


.participant-field {
    width: 100%;
}


.remove-participant-button {
    min-height: 48px;

    padding: 0 15px;

    color: #9b1c1c;

    background: #fff0f0;

    border: 1px solid #f4cccc;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}


.add-participant-button {
    margin-top: 15px;

    min-height: 48px;

    padding: 0 20px;

    color: var(--green-dark);

    background: #e1f5ec;

    border: 1px solid #cce9dc;

    border-radius: 100px;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}


.add-participant-button:hover {
    background: #d5f0e4;
}



/* ========================================
   DUPLICATE WARNING
======================================== */

.duplicate-warning {
    margin-top: 8px;

    padding: 9px 11px;

    color: #73510d;

    background: #fff5d6;

    border: 1px solid #edd791;

    border-radius: 8px;

    font-size: 12px;
    line-height: 1.45;
}



/* ========================================
   CONFIRMATION
======================================== */

.success-participants {
    font-weight: 700;
}


.confirmation-box {
    margin: 25px 0;

    padding: 20px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 16px;
}


.confirmation-box span {
    display: block;

    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.7px;
}


.confirmation-box strong {
    display: block;

    margin-top: 5px;

    color: var(--green-dark);

    font-size: 31px;

    letter-spacing: 1px;
}


.confirmation-instruction {
    font-size: 13px !important;
}



/* ========================================
   PRIVACY
======================================== */

.waiver-privacy-note {
    max-width: 650px;

    margin: 25px auto 0;

    text-align: center;

    color: var(--text-light);

    font-size: 11px;
    line-height: 1.5;
}



/* ========================================
   KIOSK MODE
======================================== */

body.kiosk-mode .waiver-header-link {
    display: none;
}


body.kiosk-mode .waiver-header-title strong {
    font-size: 22px;
}


body.kiosk-mode input {
    font-size: 18px;
}


body.kiosk-mode .submit-waiver-button {
    min-height: 70px;

    font-size: 20px;
}



/* MOBILE */

@media (max-width: 650px) {

    .participant-row {
        grid-template-columns: 1fr;
    }


    .remove-participant-button {
        width: 100%;
    }


    .confirmation-box strong {
        font-size: 27px;
    }

}

.event-selection-card {
    margin-bottom: 30px;

    padding: 22px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 79, 53, 0.14);
}


.current-event-label {
    display: block;

    margin-bottom: 7px;

    color: var(--mint);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;
}


.event-selector-wrap select {
    width: 100%;
    height: 54px;

    padding: 0 15px;

    color: var(--text);

    background: white;

    border: 0;
    border-radius: 11px;

    outline: none;

    font-size: 15px;
    font-weight: 700;
}


.selected-event-details {
    margin-top: 11px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
}


.kiosk-event-display strong {
    display: block;

    font-size: 18px;
}


.kiosk-event-display small {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.72);
}


.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.waiver-policy-link {
    margin: 32px 0 10px;
    text-align: center;
    font-size: 13px;
}

.waiver-policy-link a {
    color: #52635d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.waiver-policy-link a:hover {
    color: var(--green-dark);
}