/*
 * Wicked enquiry forms.
 * Ported from the CRM's assets-src/less (enquire.less, form.less, common-styles.less) as plain, mobile-first CSS.
 * Each agency theme only sets custom properties; components read them.
 */

/* ---------- Themes ---------- */
:root {
    --font-body: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'futura-pt-condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --bg: #fcfcfc;
    --surface: #ffffff;
    --text: #6c6c6c;
    --heading: #393939;
    --label: #747474;
    --muted: #999999;
    --line: #eaeaea;
    --link: #393939;
    --link-hover: #000000;

    --header-bg: #ffffff;
    --header-border: #eaeaea;
    --header-height: 53px;
    --header-justify: flex-start;
    --logo-width: 124px;

    --accent: #393939;
    --accent-gradient: linear-gradient(90deg, #393939 0%, #393939 100%);
    --accent-contrast: #ffffff;

    --input-bg: #ffffff;
    --input-text: #393939;
    --input-border: #d6d6d6;
    --input-focus: #bcbcbc;
    --error: #ff5858;

    --option-border: #d6d6d6;
    --option-bg: #ffffff;
    --option-selected-bg: linear-gradient(#f6f6f6, #f6f6f6);
    --tick-idle: #b6b7b8;
    --progress-idle: #bebfc0;
    --progress-text: #999999;
    --progress-line: #eaeaea;

    --shadow: 0 0 20px 0 rgba(199, 199, 199, .2);
    --radius: 5px;

    color-scheme: light;
}

/* Dark themes: Wicked Bucks, Team Trips */
.theme-wicked-bucks,
.theme-team-trips,
.theme-team-trips-nz {
    --bg: #272a2d;
    --surface: #282a30;
    --text: #bebfc0;
    --heading: #ffffff;
    --label: #ffffff;
    --muted: #b6b7b8;
    --line: #4e4f51;

    --header-bg: #17191b;
    --header-border: #17191b;
    --logo-width: 198px;

    --input-bg: transparent;
    --input-text: #ffffff;
    --input-border: #6c6e72;
    --input-focus: #bebfc0;

    --option-border: #b6b7b8;
    --option-bg: #282a30;
    --tick-idle: #b6b7b8;
    --progress-idle: #bebfc0;
    --progress-text: #bebfc0;
    --progress-line: #4e4f51;

    --shadow: 15px 0 15px 0 rgba(0, 0, 0, .2);

    color-scheme: dark;
}

.theme-wicked-bucks {
    --accent: #41e0d4;
    --accent-gradient: linear-gradient(90deg, #00dbff 0%, #92fecb 100%);
    --accent-contrast: #17191b;
    --option-selected-bg: linear-gradient(90deg, #1a353b 0%, #283835 100%);
    --link: #bebfc0;
    --link-hover: #41e0d4;
}

.theme-team-trips,
.theme-team-trips-nz {
    --accent: #f89420;
    --accent-gradient: linear-gradient(90deg, #f89420 0%, #e11f25 100%);
    --accent-contrast: #ffffff;
    --option-selected-bg: linear-gradient(90deg, #3a2c20 0%, #36252a 100%);
    --link: #f89420;
    --link-hover: #ff6a3d;
}

.theme-team-trips.womens,
.theme-team-trips-nz.womens {
    --accent: #c520f8;
    --accent-gradient: linear-gradient(90deg, #c520f8 0%, #e11f25 100%);
    --option-selected-bg: linear-gradient(90deg, #33223d 0%, #36252a 100%);
    --link: #d86bfb;
    --link-hover: #c520f8;
}

/* Light themes: Wicked Hens, Wicked Stag */
.theme-wicked-hens,
.theme-wicked-hens-nz {
    --bg: #ffffff;
    --header-bg: #ecaaa8;
    --header-border: #ecaaa8;
    --header-height: 120px;
    --header-justify: center;
    --logo-width: 160px;
    --accent: #ecaaa8;
    --accent-gradient: linear-gradient(90deg, #ecaaa8 0%, #ecaaa8 100%);
    --input-border: #ecaaa8;
    --input-focus: #d98482;
    --option-border: #ecaaa8;
    --option-selected-bg: linear-gradient(#faf0ee, #faf0ee);
    --tick-idle: #ecaaa8;
    --progress-idle: #f5e2de;
    --progress-text: #c98886;
    --progress-line: #faf0ee;
    --line: #f5e2de;
    --link-hover: #d98482;
}

.theme-wicked-stag-parties {
    --bg: #ffffff;
    --header-bg: #3f69de;
    --header-border: #3f69de;
    --logo-width: 198px;
    --accent: #3f69de;
    --accent-gradient: linear-gradient(90deg, #3f69de 0%, #3f69de 100%);
    --option-border: #3f69de;
    --option-selected-bg: linear-gradient(#e8edfd, #e8edfd);
    --tick-idle: #3f69de;
    --link-hover: #3f69de;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.15;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.125rem;
}

p {
    margin: 0 0 1.25rem;
    font-size: 1rem;
}

small {
    font-size: .875rem;
}

a {
    color: var(--link);
    transition: color .2s;
}

a:hover {
    color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: var(--header-justify);
    min-height: var(--header-height);
    padding: .5rem 1.125rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow);
}

.site-header__logo {
    display: block;
    line-height: 0;
}

.site-header__logo img {
    display: block;
    width: 100%;
    max-width: var(--logo-width);
    height: auto;
    max-height: calc(var(--header-height) - 1rem);
}

.site-header__logo--text {
    color: var(--heading);
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.site-main {
    flex: 1 0 auto;
}

/* ---------- Progress ---------- */
.progress {
    background: var(--bg);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.progress ol {
    display: flex;
    justify-content: center;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.progress li {
    position: relative;
    flex: 1 1 0;
    max-width: 8rem;
    min-width: 0;
    text-align: center;
}

.progress li + li::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: calc(50% + 1.5rem);
    width: calc(100% - 3rem);
    height: 1px;
    background: var(--progress-line);
}

.progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--progress-idle);
    text-decoration: none;
}

a.progress__step:hover .progress__label {
    color: var(--heading);
}

.progress__icon {
    display: block;
    width: 2.5625rem;
    height: 2.5625rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--progress-idle);
}

.is-complete .progress__icon,
.is-active .progress__icon {
    box-shadow: none;
    -webkit-mask: var(--icon-radio-checked) center / contain no-repeat;
    mask: var(--icon-radio-checked) center / contain no-repeat;
}

.is-complete .progress__icon {
    background: var(--progress-idle);
}

.is-active .progress__icon {
    background: var(--accent-gradient);
}

.progress__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--progress-text);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06rem;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.is-active .progress__label {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Page ---------- */
.page {
    width: 100%;
    max-width: calc(1024px + 2rem);
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.page--narrow {
    max-width: calc(560px + 2rem);
}

.page-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-title h1 {
    margin-bottom: .75rem;
}

.page-title p {
    margin: 0 0 .5rem;
}

.destination {
    margin: .75rem 0 0;
    color: var(--heading);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.destination span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: none;
}

.card {
    margin: 0 0 1rem;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card > :last-child {
    margin-bottom: 0;
}

.card__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card__title h2 {
    margin: 0;
}

.card__title a {
    font-size: 1rem;
}

/* ---------- Messages ---------- */
.notice,
.alert {
    margin: 0 0 1.25rem;
    padding: .875rem 1rem;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1rem;
}

.alert--error {
    border-left-color: var(--error);
}

.alert--success {
    border-left-color: #3cb371;
}

.alert strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--heading);
}

.alert ul {
    margin: .25rem 0 0;
    padding-left: 1.25rem;
}

.alert:focus {
    outline: none;
}

.inline-note {
    margin: 0 0 1.25rem;
    text-align: center;
}

/* ---------- Fields ---------- */
.field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1rem;
}

.field {
    min-width: 0;
    margin: 0 0 1rem;
}

.field__label {
    display: block;
    margin: 0 0 .5rem;
    color: var(--label);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02rem;
}

.field__required {
    color: var(--error);
}

.field__hint {
    display: block;
    margin: .375rem 0 0;
    color: var(--muted);
    font-size: .875rem;
}

.field__error {
    margin: .375rem 0 0;
    color: var(--error);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03rem;
    text-transform: uppercase;
}

.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: .625rem .875rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--input-text);
    font: inherit;
    font-size: 1rem;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.field select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");
    background-position: right .875rem center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
}

.field select option {
    background: var(--surface);
    color: var(--input-text);
}

.field textarea {
    min-height: 176px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--input-focus);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.field [aria-invalid='true'] {
    border-color: var(--error) !important;
}

.field input[type='date']::-webkit-calendar-picker-indicator {
    opacity: .6;
    cursor: pointer;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: var(--label);
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
}

.check input {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin: .05rem 0 0;
    accent-color: var(--accent);
}

.check a {
    text-decoration: underline;
}

/* ---------- Buttons ---------- */
.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-footer--end {
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 45px;
    padding: .625rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-contrast);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}

.btn::after,
.btn--back::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 10px;
    background: currentColor;
    -webkit-mask: var(--icon-chevron) center / contain no-repeat;
    mask: var(--icon-chevron) center / contain no-repeat;
}

.btn--back::after,
.btn--plain::after {
    display: none;
}

.btn--back::before {
    transform: rotate(180deg);
}

.btn:hover {
    border-color: var(--accent);
    background: var(--surface);
    color: var(--accent);
}

.btn--back {
    border-color: var(--accent);
    background: var(--surface);
    color: var(--accent);
}

.btn--back:hover {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* Dark themes: gradient outline with gradient label */
.theme-wicked-bucks .btn,
.theme-team-trips .btn,
.theme-team-trips-nz .btn {
    background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--accent-gradient) border-box;
    color: var(--heading);
}

.theme-wicked-bucks .btn .btn__label,
.theme-team-trips .btn .btn__label,
.theme-team-trips-nz .btn .btn__label {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-wicked-bucks .btn::after,
.theme-team-trips .btn::after,
.theme-team-trips-nz .btn::after {
    background: var(--accent-gradient);
}

.theme-wicked-bucks .btn:hover .btn__label,
.theme-team-trips .btn:hover .btn__label,
.theme-team-trips-nz .btn:hover .btn__label {
    background: none;
    color: #ffffff;
}

.theme-wicked-bucks .btn:hover::after,
.theme-team-trips .btn:hover::after,
.theme-team-trips-nz .btn:hover::after {
    background: #ffffff;
}

.theme-wicked-bucks .btn--back,
.theme-team-trips .btn--back,
.theme-team-trips-nz .btn--back {
    border-color: #bebfc0;
    background: #bebfc0;
    color: #272a2d;
}

.theme-wicked-bucks .btn--back .btn__label,
.theme-team-trips .btn--back .btn__label,
.theme-team-trips-nz .btn--back .btn__label {
    background: none;
    color: #272a2d;
}

.theme-wicked-bucks .btn--back:hover,
.theme-team-trips .btn--back:hover,
.theme-team-trips-nz .btn--back:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #272a2d;
}

.theme-wicked-bucks .btn--back:hover .btn__label,
.theme-team-trips .btn--back:hover .btn__label,
.theme-team-trips-nz .btn--back:hover .btn__label {
    color: #272a2d;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    font: inherit;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover {
    color: var(--link-hover);
}

/* ---------- Packages / Build your own switch ---------- */
.type-switch {
    display: flex;
    margin: 0 0 1.5rem;
    padding: 2px;
    border-radius: var(--radius);
    background: var(--accent-gradient);
}

.type-switch > * {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .75rem 1rem;
    border-radius: 3px;
    background: var(--bg);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .06rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.type-switch > * + * {
    margin-left: 2px;
}

.type-switch a:hover {
    background: color-mix(in srgb, var(--bg) 85%, var(--accent));
    color: var(--accent);
}

.type-switch [aria-current='page'] {
    background: transparent;
    color: var(--accent-contrast);
}

.type-switch .is-disabled {
    color: var(--muted);
    font-size: .9375rem;
}

.skip-option {
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}

/* ---------- Option cards (destinations, packages, activities, promotions) ---------- */
.option-list {
    display: grid;
    gap: 1rem;
}

.option {
    --option-fill: var(--option-bg);
    --option-edge: linear-gradient(var(--option-border), var(--option-border));
    position: relative;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(var(--option-fill), var(--option-fill)) padding-box, var(--option-edge) border-box;
    transition: opacity .2s;
}

.option:has(.option__input:checked) {
    --option-edge: var(--accent-gradient);
    background: var(--option-selected-bg) padding-box, var(--option-edge) border-box;
}

.option:has(.option__input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.option:has(.option__input:disabled) {
    opacity: .5;
}

.option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option__label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem 1rem;
    cursor: pointer;
}

.option__input:disabled + .option__label {
    cursor: not-allowed;
}

.option__image {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 660 / 512;
    object-fit: cover;
    border-radius: 3px 3px 0 0;
    background: var(--line);
}

.option__body {
    min-width: 0;
    padding: 1rem 0 1rem 1rem;
}

.option--plain .option__body {
    padding: 1.25rem 0 1.25rem 1.25rem;
}

.option__subtitle {
    display: block;
    margin: 0 0 .125rem;
    color: var(--muted);
    font-size: .9375rem;
}

.option__title {
    display: block;
    color: var(--heading);
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.option__text {
    display: block;
    margin-top: .375rem;
    color: var(--text);
    font-size: 1rem;
}

.option__tick {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    margin-right: 1rem;
    border: 3px solid var(--tick-idle);
    border-radius: 50%;
}

.option__input[type='checkbox'] + .option__label .option__tick {
    border-radius: var(--radius);
}

.option__input:checked + .option__label .option__tick {
    border: 0;
    background: var(--accent-gradient);
    -webkit-mask: var(--icon-radio-checked) center / contain no-repeat;
    mask: var(--icon-radio-checked) center / contain no-repeat;
}

.option__input[type='checkbox']:checked + .option__label .option__tick {
    -webkit-mask-image: var(--icon-checkbox-checked);
    mask-image: var(--icon-checkbox-checked);
}

.option__more {
    margin: 0 1rem;
    border-top: 1px solid var(--line);
}

.option__more summary {
    display: inline-flex;
    padding: .75rem 0;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .04rem;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.option__more summary::-webkit-details-marker {
    display: none;
}

.option__more summary:hover {
    color: var(--heading);
}

.option__more .when-open,
.option__more[open] .when-closed {
    display: none;
}

.option__more[open] .when-open {
    display: inline;
}

.option__more-body {
    padding: 0 0 1rem;
    font-size: 1rem;
}

.option__more-body p {
    margin: 0 0 .75rem;
}

.inclusions {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2 14rem;
    column-gap: 1.5rem;
}

.inclusions li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0 0 .375rem;
    break-inside: avoid;
}

.inclusions li::before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: .5rem;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.selection-count {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .9375rem;
    text-align: right;
}

/* ---------- Grouped lists (destinations by country, activities by category) ---------- */
.group {
    margin: 0 0 1rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: var(--heading);
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.group summary::-webkit-details-marker {
    display: none;
}

.group summary::after {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 8px;
    background: var(--muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
}

.group[open] summary::after {
    transform: rotate(180deg);
}

.group__count {
    margin-left: auto;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: .875rem;
    letter-spacing: .04rem;
}

.group .option-list {
    padding: 1rem;
    border-top: 1px solid var(--line);
}

/* ---------- Review ---------- */
.review-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem 2rem;
    margin: 0;
}

.review-list dt {
    color: var(--label);
    font-size: .875rem;
    font-weight: 600;
}

.review-list dd {
    margin: .125rem 0 0;
    color: var(--heading);
    font-size: 1rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* ---------- Completion ---------- */
.complete {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.complete__icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    background: var(--accent-gradient);
    -webkit-mask: var(--icon-radio-checked) center / contain no-repeat;
    mask: var(--icon-radio-checked) center / contain no-repeat;
}

.complete h1 {
    margin-bottom: .75rem;
}

.complete .btn {
    margin: .5rem 0 1.25rem;
}

.complete form {
    margin: 1rem 0 0;
}

.signature {
    display: block;
    margin-top: .25rem;
    font-style: italic;
}

.session-actions {
    margin: 1.5rem 0 0;
    text-align: center;
}

/* ---------- Home ---------- */
.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ---------- Icons ---------- */
:root {
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='8' viewBox='0 0 5 8'%3E%3Cpath d='M4.87 3.69L1.2.13a.46.46 0 0 0-.64 0L.13.54a.44.44 0 0 0 0 .63L3.04 4 .13 6.83a.44.44 0 0 0 0 .63l.43.41c.18.17.46.17.64 0l3.67-3.56a.43.43 0 0 0 0-.62z'/%3E%3C/svg%3E");
    --icon-radio-checked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpath fill-rule='evenodd' d='M19 35a16 16 0 1 1 0-32 16 16 0 0 1 0 32zM0 19a19 19 0 1 0 38 0 19 19 0 0 0-38 0zm11.23.53l5.2 5.2c.32.31.82.31 1.14 0l9.2-9.2a.8.8 0 0 0 0-1.13l-1.14-1.13a.8.8 0 0 0-1.13 0L17 20.77l-3.5-3.5a.8.8 0 0 0-1.13 0l-1.14 1.13a.8.8 0 0 0 0 1.13z'/%3E%3C/svg%3E");
    --icon-checkbox-checked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpath fill-rule='evenodd' d='M5 3h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM0 5a5 5 0 0 1 5-5h28a5 5 0 0 1 5 5v28a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5zm11.23 14.53l5.2 5.2c.32.31.82.31 1.14 0l9.2-9.2a.8.8 0 0 0 0-1.13l-1.14-1.13a.8.8 0 0 0-1.13 0L17 20.77l-3.5-3.5a.8.8 0 0 0-1.13 0l-1.14 1.13a.8.8 0 0 0 0 1.13z'/%3E%3C/svg%3E");
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
    .progress {
        padding: .875rem .5rem;
    }

    .progress__icon {
        width: 2rem;
        height: 2rem;
    }

    .progress li + li::before {
        top: 1rem;
        right: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
    }

    .progress li:not(.is-active) .progress__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .progress .is-active .progress__label {
        overflow: visible;
    }

    .progress li.is-active {
        flex-grow: 1.6;
    }

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-footer .btn {
        width: 100%;
    }

    .type-switch > * {
        font-size: 1rem;
        padding: .625rem .5rem;
    }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .page {
        padding: 3rem 2rem 4rem;
        max-width: calc(1024px + 4rem);
    }

    .page--narrow {
        max-width: calc(560px + 4rem);
    }

    .page-title {
        text-align: left;
    }

    .inline-note {
        text-align: left;
    }

    .card {
        padding: 2rem;
    }

    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .progress {
        padding: 1rem 1.5rem;
    }

    .progress__label {
        font-size: 1rem;
    }

    .option__label {
        grid-template-columns: 24% minmax(0, 1fr) auto;
        gap: 1.625rem;
    }

    .option__tick {
        margin-right: 2rem;
    }

    .option--wide .option__label {
        grid-template-columns: 40% minmax(0, 1fr) auto;
    }

    .option--plain .option__label {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .option__image {
        grid-column: auto;
        align-self: stretch;
        height: 100%;
        border-radius: 3px 0 0 3px;
    }

    .option__body {
        padding: 1.5rem 0;
    }

    .option--plain .option__body {
        padding: 1.5rem 0 1.5rem 1.625rem;
    }

    .option__more {
        margin: 0 1.625rem;
    }

    .group summary {
        padding: 1.25rem 1.5rem;
    }

    .group .option-list {
        padding: 1.5rem;
    }

    .review-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ---------- Home: list of forms ---------- */
.form-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-list__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin: 0;
}

.form-list__logo {
    width: auto;
    max-width: 160px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.form-list__logo--wicked-hens,
.form-list__logo--wicked-hens-nz {
    padding: 4px 8px;
    border-radius: var(--radius);
    background: #ecaaa8;
}

.form-list__logo--wicked-bucks,
.form-list__logo--team-trips,
.form-list__logo--team-trips-nz {
    padding: 4px 8px;
    border-radius: var(--radius);
    background: #17191b;
}

.form-list__logo--wicked-stag-parties {
    padding: 4px 8px;
    border-radius: var(--radius);
    background: #3f69de;
}

.form-list h2 {
    margin: 0;
}

.form-list__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .form-list__item {
        grid-template-columns: 180px 1fr auto;
        align-items: center;
        gap: 1.5rem;
    }
}
