/* =========================================================
   IDM HERITAGE RUN 4
   PARTNER & GROUP RESERVATION PORTAL
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background: #f5f6fb;
    color: #101126;
    line-height: 1.6;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

:root {
    --navy: #0b0c25;
    --navy-deep: #070817;
    --navy-soft: #111331;
    --indigo: #11127f;
    --indigo-light: #27299f;
    --lavender: #a8a9ff;
    --lavender-soft: #e8e8ff;
    --white: #ffffff;
    --off-white: #f8f8fc;
    --text: #101126;
    --muted: #6d6f84;
    --border: #e3e4ee;
    --success: #21885a;
    --danger: #c93d49;
    --shadow-sm: 0 4px 18px rgba(11, 12, 37, 0.05);
    --shadow-md: 0 16px 45px rgba(11, 12, 37, 0.08);
    --shadow-lg: 0 30px 80px rgba(11, 12, 37, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

.portal-header {
    position: relative;
    z-index: 20;
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-header-inner {
    width: min(1380px, calc(100% - 64px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--navy);
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
    letter-spacing: 0.03em;
    border-radius: 10px;
}

.brand-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--lavender);
}

.brand-text strong {
    margin-top: 4px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 21px;
    letter-spacing: 0.05em;
}

.header-event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.header-event-date span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
}

.header-event-date strong {
    margin-top: 5px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
    letter-spacing: 0.04em;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(168, 169, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #08091c 0%, #0c0e30 50%, #12145a 100%);
    color: var(--white);
}

.portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.portal-hero::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -280px;
    bottom: -420px;
    border-radius: 50%;
    border: 1px solid rgba(168, 169, 255, 0.15);
    box-shadow:
        0 0 0 80px rgba(168, 169, 255, 0.025),
        0 0 0 160px rgba(168, 169, 255, 0.018);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100% - 64px));
    margin: 0 auto;
    padding: 95px 0 105px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--lavender);
}

.hero-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--lavender);
}

.hero-inner h1 {
    max-width: 900px;
    margin-top: 17px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(64px, 8vw, 120px);
    font-weight: 400;
    line-height: 0.87;
    letter-spacing: 0.015em;
}

.hero-inner > p {
    max-width: 650px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.hero-meta i {
    color: var(--lavender);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero-glow-one {
    width: 280px;
    height: 280px;
    top: 80px;
    right: 12%;
    background: rgba(168, 169, 255, 0.07);
}

.hero-glow-two {
    width: 180px;
    height: 180px;
    bottom: 50px;
    left: 4%;
    background: rgba(75, 86, 255, 0.06);
}

.portal-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 100px;
}

.intro-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 23px 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.notice-icon {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--lavender-soft);
    color: var(--indigo);
    font-size: 17px;
}

.intro-notice strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.intro-notice p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.form-section {
    margin-top: 72px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.section-number {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--lavender);
    border-radius: 12px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    letter-spacing: 0.05em;
}

.section-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--indigo);
}

.section-heading h2 {
    margin-top: 2px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 39px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.section-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.form-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-field {
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--navy);
}

.form-field label span {
    color: var(--indigo);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #dfe0ea;
    border-radius: 10px;
    background: #fbfbfd;
    color: var(--text);
    outline: none;
    font-size: 13px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-field textarea {
    padding: 14px 15px;
    min-height: 100px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a3a4b2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--indigo);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 18, 127, 0.07);
}

.form-field small {
    display: block;
    margin-top: 6px;
    color: #9495a3;
    font-size: 10px;
}

.participants-heading {
    align-items: center;
}

.heading-main {
    flex: 1;
}

.participant-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: #8a8b9a;
    font-size: 11px;
    font-weight: 800;
}

.participant-counter strong {
    color: var(--indigo);
    font-size: 16px;
}

.participant-card {
    position: relative;
    margin-top: 18px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    animation: participantIn 0.35s ease both;
}

@keyframes participantIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.participant-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ececf3;
}

.participant-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-badge {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--lavender);
    border-radius: 10px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
}

.participant-title strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
}

.participant-title span {
    display: block;
    margin-top: 1px;
    color: #999aa8;
    font-size: 10px;
}

.remove-participant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: #a1a2af;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.remove-participant:hover {
    color: var(--danger);
}

.participant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.participant-grid .full-width {
    grid-column: 1 / -1;
}

.distance-field {
    grid-column: 1 / -1;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8ff, #f2f3ff);
    border: 1px solid #dedff3;
    border-radius: 14px;
}

.distance-field label {
    color: var(--indigo);
}

.distance-field select {
    background: var(--white);
    border-color: #d2d3ea;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.size-chart-link {
    border: 0;
    background: transparent;
    color: var(--indigo);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.size-chart-link:hover {
    color: #6d6fe2;
}

.size-chart-link i {
    margin-left: 3px;
}

.form-field.is-disabled {
    opacity: 0.55;
}

.form-field.is-disabled input,
.form-field.is-disabled select {
    background: #f0f0f4;
    cursor: not-allowed;
}

.add-participant-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.add-participant-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 260px;
    padding: 14px 20px;
    border: 1px dashed #b8b9d3;
    border-radius: 14px;
    background: transparent;
    color: var(--navy);
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.add-participant-btn:hover {
    border-color: var(--indigo);
    background: #f8f8ff;
    transform: translateY(-2px);
}

.add-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--navy);
    color: var(--lavender);
}

.add-participant-btn strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.add-participant-btn small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.summary-section {
    margin-top: 72px;
}

.summary-card {
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-header .section-kicker {
    color: var(--lavender);
}

.summary-header h2 {
    margin-top: 3px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.summary-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(168, 169, 255, 0.2);
    border-radius: 100px;
    color: var(--lavender);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.distance-summary {
    padding: 10px 32px;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr 70px 110px;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row > div {
    display: flex;
    flex-direction: column;
}

.summary-row > div strong {
    font-size: 13px;
}

.summary-row > div span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}

.summary-row > strong:nth-child(2) {
    text-align: center;
    color: var(--lavender);
    font-size: 14px;
}

.summary-row > strong:last-child {
    text-align: right;
    font-size: 14px;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 32px;
    background: rgba(0, 0, 0, 0.16);
}

.summary-total span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.summary-total strong {
    font-family: "Bebas Neue", sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--white);
}

.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 17px 32px;
    background: rgba(168, 169, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-note i {
    margin-top: 3px;
    color: var(--lavender);
    font-size: 13px;
}

.payment-note p {
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px;
    line-height: 1.6;
}

.waiver-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.waiver-scroll {
    max-height: 440px;
    overflow-y: auto;
    padding: 28px 32px;
}

.waiver-scroll::-webkit-scrollbar {
    width: 7px;
}

.waiver-scroll::-webkit-scrollbar-track {
    background: #f3f3f7;
}

.waiver-scroll::-webkit-scrollbar-thumb {
    background: #c7c8d8;
    border-radius: 20px;
}

.waiver-scroll p {
    margin-bottom: 17px;
    color: #5d5f71;
    font-size: 12px;
    line-height: 1.75;
}

.waiver-scroll p:last-child {
    margin-bottom: 0;
}

.waiver-scroll strong {
    color: var(--navy);
}

.waiver-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 21px 28px;
    background: #f8f8ff;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.privacy-checkbox {
    background: #f5f5fb;
}

.custom-checkbox {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #b8b9c9;
    border-radius: 5px;
    background: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.waiver-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.waiver-checkbox input:checked + .custom-checkbox {
    background: var(--indigo);
    border-color: var(--indigo);
}

.waiver-checkbox input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    left: 6px;
    top: 3px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #55576a;
    font-size: 11px;
    line-height: 1.65;
}

.checkbox-text strong {
    color: var(--indigo);
}

.privacy-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 28px;
    background: #f1f1f7;
    border-top: 1px solid var(--border);
}

.privacy-contact-note i {
    margin-top: 3px;
    color: var(--indigo);
    font-size: 13px;
}

.privacy-contact-note p {
    color: #6d6f84;
    font-size: 10px;
    line-height: 1.65;
}

.submit-section {
    margin-top: 60px;
}

.submit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff, #f5f5ff);
    border: 1px solid #dfe0f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.submit-copy .section-kicker {
    color: var(--indigo);
}

.submit-copy h2 {
    margin-top: 3px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.submit-copy p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 56px;
    padding: 0 25px;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 25px rgba(11, 12, 37, 0.16);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
    background: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17, 18, 127, 0.2);
}

.submit-btn i {
    color: var(--lavender);
    transition: transform 0.25s ease;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 20, 0.82);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    z-index: 2;
    width: min(950px, 100%);
    max-height: calc(100vh - 50px);
    overflow: auto;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.3s ease;
}

.modal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: var(--indigo);
    transform: rotate(90deg);
}

.modal-header {
    padding-right: 55px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin-top: 3px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1;
}

.modal-image-wrap {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #f4f4f7;
    border-radius: 12px;
}

.modal-image-wrap img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.toast {
    position: fixed;
    z-index: 200;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 390px;
    padding: 14px 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast i {
    color: #6ee7ad;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(201, 61, 73, 0.07);
}

.form-field-error {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .portal-header-inner,
    .hero-inner {
        width: min(100% - 40px, 1380px);
    }

    .portal-content {
        width: min(100% - 36px, 1180px);
    }

    .hero-inner {
        padding: 80px 0 85px;
    }

    .hero-inner h1 {
        font-size: clamp(60px, 11vw, 90px);
    }

    .form-grid,
    .participant-grid {
        grid-template-columns: 1fr;
    }

    .full-width,
    .participant-grid .full-width,
    .distance-field {
        grid-column: auto;
    }

    .submit-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .portal-header-inner {
        width: calc(100% - 28px);
        min-height: 70px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 21px;
        border-radius: 8px;
    }

    .brand-divider {
        height: 28px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .header-event-date span {
        font-size: 8px;
    }

    .header-event-date strong {
        font-size: 19px;
    }

    .hero-inner {
        width: calc(100% - 30px);
        padding: 65px 0 70px;
    }

    .hero-eyebrow {
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .hero-eyebrow::before {
        width: 20px;
    }

    .hero-inner h1 {
        margin-top: 14px;
        font-size: clamp(53px, 17vw, 76px);
        line-height: 0.88;
    }

    .hero-inner > p {
        margin-top: 22px;
        font-size: 13px;
        line-height: 1.7;
    }

    .hero-meta {
        margin-top: 25px;
        gap: 7px;
    }

    .hero-meta span {
        padding: 8px 11px;
        font-size: 9px;
    }

    .portal-content {
        width: calc(100% - 24px);
        padding: 35px 0 70px;
    }

    .intro-notice {
        padding: 18px;
        gap: 12px;
    }

    .notice-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 14px;
    }

    .intro-notice strong {
        font-size: 12px;
    }

    .intro-notice p {
        font-size: 10px;
    }

    .form-section,
    .summary-section {
        margin-top: 50px;
    }

    .section-heading {
        gap: 11px;
        margin-bottom: 17px;
    }

    .section-number {
        width: 37px;
        height: 37px;
        border-radius: 9px;
        font-size: 18px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .section-kicker {
        font-size: 8px;
    }

    .participant-counter {
        padding: 7px 9px;
        font-size: 9px;
    }

    .participant-counter strong {
        font-size: 13px;
    }

    .form-card,
    .participant-card {
        padding: 20px;
        border-radius: 17px;
    }

    .participant-card {
        margin-top: 13px;
    }

    .participant-card-header {
        padding-bottom: 16px;
        margin-bottom: 19px;
    }

    .participant-badge {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .participant-title strong {
        font-size: 11px;
    }

    .participant-title span {
        font-size: 8px;
    }

    .remove-participant {
        font-size: 9px;
    }

    .participant-grid,
    .form-grid {
        gap: 16px;
    }

    .form-field label {
        font-size: 9px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 48px;
        padding: 0 12px;
        font-size: 11px;
    }

    .form-field small {
        font-size: 8px;
    }

    .add-participant-btn {
        width: 100%;
        min-width: 0;
    }

    .summary-header {
        padding: 23px 20px;
        align-items: flex-start;
        gap: 15px;
    }

    .summary-header h2 {
        font-size: 32px;
    }

    .summary-status {
        padding: 7px 9px;
        font-size: 7px;
    }

    .distance-summary {
        padding: 7px 20px;
    }

    .summary-row {
        grid-template-columns: 1fr 35px 78px;
        gap: 8px;
        padding: 15px 0;
    }

    .summary-row > div strong {
        font-size: 10px;
    }

    .summary-row > div span {
        font-size: 8px;
    }

    .summary-row > strong:nth-child(2),
    .summary-row > strong:last-child {
        font-size: 10px;
    }

    .summary-total {
        padding: 20px;
    }

    .summary-total span {
        font-size: 8px;
    }

    .summary-total strong {
        font-size: 34px;
    }

    .payment-note {
        padding: 14px 20px;
    }

    .payment-note p {
        font-size: 9px;
    }

    .waiver-scroll {
        max-height: 420px;
        padding: 20px;
    }

    .waiver-scroll p {
        font-size: 10px;
        line-height: 1.7;
    }

    .waiver-checkbox {
        padding: 17px 20px;
        gap: 10px;
    }

    .checkbox-text {
        font-size: 9px;
    }

    .privacy-contact-note {
        padding: 14px 20px;
    }

    .privacy-contact-note p {
        font-size: 9px;
    }

    .submit-card {
        padding: 23px;
        border-radius: 17px;
    }

    .submit-copy h2 {
        font-size: 32px;
    }

    .submit-copy p {
        font-size: 10px;
    }

    .submit-btn {
        min-height: 52px;
        font-size: 10px;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        padding: 20px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .modal-close {
        width: 34px;
        height: 34px;
        top: 12px;
        right: 12px;
    }

    .modal-header {
        padding-right: 45px;
    }

    .modal-header h2 {
        font-size: 30px;
    }

    .modal-image-wrap {
        padding: 5px;
    }

    .modal-image-wrap img {
        max-height: 70vh;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .header-event-date {
        display: none;
    }

    .hero-inner h1 {
        font-size: 50px;
    }

    .summary-row {
        grid-template-columns: 1fr 25px 70px;
    }
}
