:root {
        --orange: #ff8a33;
        --orange-dark: #e76f16;
        --orange-soft: #fff0e4;
        --black: #172129;
        --white: #ffffff;
        --paper: #fffdfb;
        --ink-soft: #5b5b5b;
        --line: #e6ded8;
        --green: #238653;
        --green-soft: #e2f4e9;
        --gray: #ecebea;
        --danger: #b3261e;
        --shadow: 0 18px 45px rgba(40, 25, 14, 0.11);
      }

      * { box-sizing: border-box; }

      body {
        margin: 0;
        color: var(--black);
        background:
          radial-gradient(circle at 5% 15%, rgba(255, 138, 51, 0.14), transparent 28rem),
          linear-gradient(180deg, #fff8f2 0, #f7f4f1 100%);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        line-height: 1.45;
      }

      button, input, select { font: inherit; }

      .topline { height: 8px; background: var(--orange); }

      .hero {
        position: relative;
        overflow: hidden;
        background: var(--black);
        color: var(--white);
      }

      .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.13;
        background: repeating-linear-gradient(
          118deg,
          transparent 0 42px,
          rgba(0, 0, 0, 0.7) 43px 49px,
          transparent 50px 88px
        );
        clip-path: polygon(70% 0, 100% 0, 100% 100%, 52% 100%);
      }

      .hero-inner {
        width: min(1120px, calc(100% - 32px));
        margin: auto;
        padding: 38px 0;
        position: relative;
        z-index: 1;
      }

      .brand {
        width: 24%;
        min-width: 180px;
      }

      .brand-logo {
        position: relative;
        display: block;
        padding-bottom: 31.14%;
        height: 0;
        overflow: hidden;
      }

      .brand-logo img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-width: none;
      }

      .brand-name { display: inline; position: absolute;height: 0;width: 0;overflow: hidden;}
      .brand-name small { font-size: 0.69rem; letter-spacing: 0.15em; }
      .brand-name strong { font-size: 1.2rem; letter-spacing: 0.1em; }

      .hero-copy { position: relative; z-index: 2;padding: 28px; padding-bottom: 0; }
      .hero-copy p{font-size: 1.25em;}
      .hero-kicker {
        margin: 0 0 10px !important;
        font-size: 0.76rem !important;
        font-weight: 900;
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

      h1 {
        max-width: 800px;
        margin: 0;
        font-size: clamp(2rem, 5vw, 3.5rem);
        line-height: 1;
        letter-spacing: -0.04em;
      }

      .hero p { max-width: 690px; margin: 18px 0 0; font-size: 1.08rem; }

      .hero-silhouette {
        position: absolute;
        right: -30px;
        bottom: -9px;
        z-index: 0;
        width: min(59vw, 690px);
        color: var(--black);
        opacity: 0.93;
        pointer-events: none;
      }
      .hero-silhouette svg { display: block; width: 100%; height: auto; }

      main {
        width: min(1120px, calc(100% - 32px));
        margin: -20px auto 64px;
        position: relative;
        z-index: 2;
      }

      .shell {
        background: var(--paper);
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 22px;
        box-shadow: var(--shadow);
        overflow: hidden;
      }

      .progress {
        height: 6px;
        background: linear-gradient(90deg, var(--black) 0 33%, var(--orange) 33% 100%);
      }

      form { padding: 28px; }

      .layout {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
        gap: 28px;
        align-items: start;
      }

      .stack { display: grid; gap: 22px; }

      .card {
        padding: 24px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 17px;
      }

      .section-kicker {
        margin: 0 0 5px;
        color: var(--orange-dark);
        font-size: 0.76rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      h2 { margin: 0 0 18px; font-size: 1.32rem; }

      .fields { display: grid; gap: 16px; }
      .two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      label.field { display: grid; gap: 7px; font-weight: 750; font-size: 0.94rem; }
      .required::after { content: " *"; color: var(--danger); }

      input, select {
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        color: var(--black);
        background: var(--white);
        border: 1px solid #bdb7b2;
        border-radius: 10px;
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s;
      }

      input:focus, select:focus {
        border-color: var(--orange-dark);
        box-shadow: 0 0 0 3px rgba(255, 138, 51, 0.2);
      }

      .help { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }
      .product-note {
        display: none;
        margin: 14px 0 0;
        padding: 12px 14px;
        background: var(--orange-soft);
        border-left: 4px solid var(--orange);
        border-radius: 8px;
        font-size: 0.9rem;
      }

      .ages-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
      }

      .age-field { display: grid; gap: 5px; font-size: 0.78rem; font-weight: 750; }
      .age-field input { min-height: 43px; padding: 8px; }

      .calendar-card { position: sticky; top: 16px; }

      .calendar-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
      }

      .calendar-heading h2 { margin: 0; }
      .month-nav { display: flex; align-items: center; gap: 8px; }
      .month-title { min-width: 145px; text-align: center; font-weight: 850; }

      .icon-button {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--black);
        background: var(--white);
        cursor: pointer;
      }

      .icon-button:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-soft); }
      .icon-button:disabled { opacity: 0.35; cursor: not-allowed; }

      .weekdays, .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 7px;
      }

      .weekdays { margin-bottom: 7px; }
      .weekdays span { text-align: center; color: var(--ink-soft); font-size: 0.75rem; font-weight: 800; }

      .day, .blank-day { aspect-ratio: 1 / 0.86; min-height: 48px; }
      .day {
        position: relative;
        border: 1px solid transparent;
        border-radius: 11px;
        font-weight: 800;
        cursor: pointer;
        transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
      }

      .day.available { color: #125c38; background: var(--green-soft); border-color: #8dc9a8; }
      .day.available:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(35, 134, 83, 0.18); }
      .day.unavailable { color: #99928d; background: var(--gray); cursor: not-allowed; }
      .day.selected { color: var(--black); background: var(--orange); border-color: var(--black); box-shadow: 3px 3px 0 var(--black); }

      .priority {
        position: absolute;
        top: 3px;
        right: 4px;
        display: grid;
        place-items: center;
        width: 19px;
        height: 19px;
        color: var(--white);
        background: var(--black);
        border-radius: 50%;
        font-size: 0.68rem;
      }

      .legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
      .legend span { display: inline-flex; align-items: center; gap: 6px; }
      .swatch { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); }
      .swatch.available { background: var(--green-soft); }
      .swatch.unavailable { background: var(--gray); }
      .swatch.selected { background: var(--orange); }

      .calendar-placeholder, .calendar-status {
        padding: 40px 18px;
        color: var(--ink-soft);
        background: #faf8f6;
        border: 1px dashed #cfc7c0;
        border-radius: 12px;
        text-align: center;
      }

      .calendar-loading {
        display: grid;
        justify-items: center;
        gap: 11px;
      }
      .calendar-spinner {
        width: 36px;
        height: 36px;
        border: 4px solid rgba(255, 138, 51, 0.22);
        border-top-color: var(--orange-dark);
        border-radius: 50%;
        animation: spin .8s linear infinite;
      }
      .calendar-loading-title { color: var(--black); font-weight: 900; }
      .calendar-loading-detail { min-height: 1.3em; font-size: 0.84rem; }
      .calendar-loading-track {
        position: relative;
        width: min(290px, 86%);
        height: 7px;
        overflow: hidden;
        background: #eadfd7;
        border-radius: 999px;
      }
      .calendar-loading-track::after {
        content: "";
        position: absolute;
        inset: 0 auto 0 -42%;
        width: 42%;
        background: var(--orange);
        border-radius: inherit;
        animation: loading-slide 1.25s ease-in-out infinite;
      }
      @keyframes loading-slide { to { left: 100%; } }

      .chosen { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
      .chosen h3 { margin: 0 0 10px; font-size: 1rem; }
      .chosen-list { display: grid; gap: 8px; }
      .chosen-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: var(--orange-soft);
        border-radius: 10px;
      }
      .chosen-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; color: white; background: black; border-radius: 50%; font-weight: 900; }
      .remove-date { border: 0; color: var(--danger); background: transparent; cursor: pointer; font-weight: 800; }
      .empty-choice { color: var(--ink-soft); font-size: 0.9rem; }

      .consent {
        display: grid;
        grid-template-columns: 22px 1fr;
        gap: 11px;
        align-items: start;
        font-size: 0.86rem;
      }
      .consent input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--orange-dark); }
      .consent a { color: var(--orange-dark); font-weight: 800; }

      .form-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid var(--line);
      }

      .submit-button, .restart-button {
        min-height: 50px;
        padding: 12px 24px;
        border: 2px solid var(--black);
        border-radius: 12px;
        color: var(--black);
        background: var(--orange);
        box-shadow: 4px 4px 0 var(--black);
        cursor: pointer;
        font-weight: 900;
        transition: transform 0.1s, box-shadow 0.1s;
      }
      .submit-button:hover:not(:disabled), .restart-button:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--black); }
      .submit-button:disabled { opacity: 0.55; cursor: wait; }

      .submit-status {
        display: none;
        align-items: center;
        gap: 10px;
        max-width: 560px;
        color: var(--ink-soft);
        font-size: 0.88rem;
        font-weight: 700;
      }
      .submit-status.visible { display: flex; }
      .submit-spinner {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        border: 3px solid rgba(17,17,17,.18);
        border-top-color: var(--black);
        border-radius: 50%;
        animation: spin .75s linear infinite;
      }
      @keyframes spin { to { transform: rotate(360deg); } }

      .error-box {
        display: none;
        margin: 0 0 22px;
        padding: 13px 15px;
        color: #7c1c17;
        background: #fde9e7;
        border: 1px solid #efaaa5;
        border-radius: 10px;
      }

      .form-expired {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin: 0 0 22px;
        padding: 16px;
        color: #7c1c17;
        background: #fde9e7;
        border: 1px solid #efaaa5;
        border-radius: 10px;
      }
      .form-expired.visible { display: flex; }
      .form-expired p { margin: 4px 0 0; }
      .reload-form-button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 9px 16px;
        color: var(--black);
        background: var(--orange);
        border: 2px solid var(--black);
        border-radius: 10px;
        box-shadow: 3px 3px 0 var(--black);
        cursor: pointer;
        font-weight: 900;
      }
      .reload-form-button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--black); }

      .field-error { color: var(--danger); font-size: 0.8rem; }
      .invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(179,38,30,.12) !important; }

      .loading-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        margin: 0 2px;
        background: var(--orange-dark);
        border-radius: 50%;
        animation: pulse 1s infinite alternate;
      }
      .loading-dot:nth-child(2) { animation-delay: .2s; }
      .loading-dot:nth-child(3) { animation-delay: .4s; }
      @keyframes pulse { to { opacity: .25; transform: translateY(-3px); } }

      .success {
        display: none;
        max-width: 680px;
        margin: auto;
        padding: 58px 28px;
        text-align: center;
      }
      .success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; color: white; background: var(--green); border-radius: 50%; font-size: 2.2rem; }
      .success h2 { font-size: 2rem; margin-bottom: 12px; }
      .request-id { display: inline-block; margin: 10px 0 26px; padding: 9px 14px; background: var(--orange-soft); border-radius: 8px; font-family: ui-monospace, monospace; font-weight: 900; }

      .honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

      @media (max-width: 860px) {
        .layout { grid-template-columns: 1fr; }
        .calendar-card { position: static; }
        .hero-silhouette { width: 78vw; opacity: 0.28; }
      }
      @media (max-width: 560px) {
        .hero-inner { width: min(100% - 24px, 1120px); padding: 24px 0 38px; }
        .hero-silhouette { right: -90px; width: 115vw; }
        main { width: min(100% - 16px, 1120px); }
        form { padding: 16px; }
        .card { padding: 18px; }
        .two-columns { grid-template-columns: 1fr; }
        .ages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .calendar-heading { align-items: flex-start; flex-direction: column; }
        .month-nav { width: 100%; justify-content: space-between; }
        .day, .blank-day { min-height: 40px; }
        .weekdays, .calendar-grid { gap: 4px; }
        .form-footer { align-items: stretch; flex-direction: column; }
        .form-expired { align-items: stretch; flex-direction: column; }
        .reload-form-button { width: 100%; }
        .submit-button { width: 100%; }
      }
