:root {
    --bg: #fffaf8;
    --bg-soft: #fff3ef;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-muted: rgba(255, 249, 247, 0.74);
    --border: rgba(164, 91, 108, 0.14);
    --border-strong: rgba(164, 91, 108, 0.26);
    --text: #3d2630;
    --text-soft: #70505f;
    --muted: #9b7b87;
    --accent: #b86c80;
    --accent-strong: #9f5267;
    --accent-dark: #6e3648;
    --gold: #bc8f60;
    --shadow: 0 18px 42px rgba(147, 89, 106, 0.1);
    --shadow-soft: 0 10px 26px rgba(147, 89, 106, 0.06);
    --shadow-crisp: 0 6px 16px rgba(126, 72, 91, 0.05);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-body: "Avenir Next", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --success: #37795f;
    --danger: #b44d62;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 226, 233, 0.95), transparent 23%),
        radial-gradient(circle at 88% 8%, rgba(255, 243, 214, 0.88), transparent 19%),
        radial-gradient(circle at 70% 60%, rgba(242, 217, 226, 0.52), transparent 24%),
        linear-gradient(180deg, #fffefd 0%, #fff8f5 38%, #fff4f3 100%);
    letter-spacing: 0.01em;
}

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

a {
    color: inherit;
}

::selection {
    background: rgba(184, 108, 128, 0.18);
    color: var(--accent-dark);
}

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

.theme-public {
    position: relative;
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.4;
}

.ambient-one {
    top: -8rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(255, 200, 210, 0.85), transparent 64%);
}

.ambient-two {
    right: -10rem;
    bottom: -10rem;
    background: radial-gradient(circle, rgba(245, 211, 180, 0.85), transparent 60%);
}

.page-shell {
    width: min(1280px, calc(100% - 1.25rem));
    margin: 0 auto;
    padding: 0.6rem 0 3rem;
}

.glass-card,
.admin-card,
.metric-card,
.detail-card,
.submission-card,
.login-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    gap: 0.8rem;
    padding: 0.2rem 0 1rem;
}

.hero-copy,
.hero-stats,
.thank-you-card {
    border-radius: var(--radius-xl);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(183, 108, 126, 0.12);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 244, 0.66)),
        radial-gradient(circle at top right, rgba(255, 229, 235, 0.6), transparent 32%);
    box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-strong);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-copy h1,
.form-shell-top h2,
.thank-you-card h1,
.login-showcase h1,
.admin-page-head h1 {
    margin: 0.45rem 0 0.6rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-copy p,
.form-shell-top p,
.thank-you-card p,
.login-showcase p,
.admin-page-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 40rem;
}

.hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.hero-pill-row span,
.reference-pill {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(183, 108, 126, 0.1);
    box-shadow: var(--shadow-crisp);
    font-size: 0.83rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.62);
}

.hero-stats div {
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(183, 108, 126, 0.08);
}

.hero-stats strong {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--accent-dark);
}

.hero-stats span {
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.compact-group {
    margin-top: 0.9rem;
}

.form-shell {
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 248, 0.72)),
        radial-gradient(circle at top right, rgba(251, 230, 236, 0.55), transparent 24%);
}

.form-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 85% 12%, rgba(188, 143, 96, 0.08), transparent 16%);
}

.form-shell-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.step-badge {
    min-width: 104px;
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(183, 108, 126, 0.1), rgba(245, 214, 187, 0.38));
    border: 1px solid rgba(183, 108, 126, 0.1);
    text-align: center;
}

.step-badge span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.step-badge strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
}

.progress-wrap {
    margin-bottom: 0.7rem;
}

.progress-track {
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(183, 108, 126, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #eaa2af, #c77a8b 52%, #bb9667);
    transition: width 0.35s ease;
}

.step-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.step-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(183, 108, 126, 0.14);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-soft);
    cursor: pointer;
    transition: 0.25s ease;
    scroll-snap-align: start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.step-chip span {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(183, 108, 126, 0.12);
    color: var(--accent-dark);
    font-weight: 700;
}

.step-chip small {
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: left;
}

.step-chip:hover,
.step-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(183, 108, 126, 0.36);
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-crisp);
}

.step-chip.is-active span {
    background: linear-gradient(135deg, rgba(183, 108, 126, 0.86), rgba(184, 139, 90, 0.88));
    color: #fff;
}

.alert {
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(180, 77, 98, 0.09);
    color: #8d3550;
    border-color: rgba(180, 77, 98, 0.18);
}

.alert-success {
    background: rgba(55, 121, 95, 0.09);
    color: #2f6d57;
    border-color: rgba(55, 121, 95, 0.18);
}

.alert.compact {
    margin-top: 0;
}

.enquiry-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.form-step.is-active {
    display: block;
    padding: 0.75rem;
    border-radius: calc(var(--radius-xl) - 8px);
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(183, 108, 126, 0.08);
}

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

.section-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.section-header.compact {
    margin-bottom: 0.6rem;
}

.section-index {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(183, 108, 126, 0.14), rgba(255, 255, 255, 0.86));
    color: var(--accent-dark);
    font-weight: 700;
    font-family: var(--font-heading);
}

.section-header h3,
.sub-card h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.section-header p,
.sub-card p {
    margin: 0.18rem 0 0;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: 0.93rem;
}

.form-grid {
    display: grid;
    gap: 0.8rem;
}

.field,
.upload-field {
    display: grid;
    gap: 0.42rem;
}

.field span,
.upload-field span {
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
}

.field em {
    color: var(--danger);
    font-style: normal;
}

.field input,
.field select,
.field textarea,
.upload-field input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(183, 108, 126, 0.16);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.upload-field input:focus {
    outline: none;
    border-color: rgba(183, 108, 126, 0.55);
    box-shadow: 0 0 0 4px rgba(183, 108, 126, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: rgba(180, 77, 98, 0.6);
    box-shadow: 0 0 0 4px rgba(180, 77, 98, 0.08);
}

.field small,
.upload-field small {
    color: var(--muted);
    font-size: 0.76rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.76rem;
    font-weight: 600;
}

.field-error.block {
    display: block;
    margin-top: 0.7rem;
}

.two-col {
    grid-template-columns: 1fr;
}

.field-span-2 {
    grid-column: span 1;
}

.subsection-grid {
    display: grid;
    gap: 0.8rem;
}

.sub-card,
.repeatable-card {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(183, 108, 126, 0.12);
    box-shadow: var(--shadow-soft);
}

.optional-panel {
    margin-top: 0.9rem;
    border: 1px solid rgba(183, 108, 126, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.optional-panel summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.optional-panel summary::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
}

.optional-panel[open] summary::after {
    content: "−";
}

.optional-panel-body {
    padding: 0 1rem 1rem;
}

.repeatable-list {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.repeatable-card-head {
    margin-bottom: 0.45rem;
    color: var(--accent-dark);
    font-size: 0.92rem;
}

.upload-grid {
    display: grid;
    gap: 0.8rem;
}

.upload-field {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(183, 108, 126, 0.35);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 246, 0.92)),
        radial-gradient(circle at top right, rgba(244, 221, 226, 0.25), transparent 26%);
}

.upload-field input {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
}

.upload-preview {
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.upload-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.upload-preview .file-chip {
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(183, 108, 126, 0.12);
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.feature-option,
.agreement-box {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(183, 108, 126, 0.11);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-option:hover,
.feature-option:focus-within,
.agreement-box:hover,
.agreement-box:focus-within {
    transform: translateY(-1px);
    border-color: rgba(183, 108, 126, 0.22);
    box-shadow: var(--shadow-crisp);
}

.feature-option input,
.agreement-box input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: var(--accent-strong);
}

.field-spaced {
    margin-top: 0.8rem;
}

.step-actions {
    position: sticky;
    bottom: 0.9rem;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.65rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(183, 108, 126, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.primary-button,
.secondary-button,
.ghost-link,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong), var(--gold));
    box-shadow: 0 14px 30px rgba(159, 79, 100, 0.22);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(183, 108, 126, 0.24);
    color: var(--accent-dark);
}

.ghost-link {
    color: var(--accent-dark);
    padding: 0;
    min-height: unset;
    background: transparent;
}

.danger-link {
    color: var(--danger);
    background: transparent;
    padding: 0;
    min-height: unset;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover,
.danger-link:hover,
.step-chip:hover {
    transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(0);
}

.submit-button {
    display: none;
}

.submit-button.is-visible {
    display: inline-flex;
}

.thank-you-card {
    max-width: 760px;
    margin: 4rem auto;
    padding: 1.4rem;
    text-align: center;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 245, 0.78)),
        radial-gradient(circle at top center, rgba(247, 224, 229, 0.34), transparent 30%);
}

.reference-pill {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    margin: 1.4rem auto 0;
}

.reference-pill strong {
    color: var(--accent-dark);
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.full-width {
    width: 100%;
}

.is-hidden {
    display: none !important;
}

.muted-text {
    color: var(--text-soft);
}

@media (min-width: 760px) {
    .page-shell {
        width: min(1320px, calc(100% - 2.5rem));
        padding: 1rem 0 4rem;
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.75fr);
        align-items: end;
        padding-bottom: 2.4rem;
    }

    .form-shell {
        padding: 1rem;
    }

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

    .field-span-2 {
        grid-column: span 2;
    }

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

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

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

    .step-actions {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1080px) {
    .form-shell {
        padding: 1.2rem;
    }

    .step-nav {
        grid-auto-columns: minmax(150px, 1fr);
    }

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

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

@media (max-width: 759px) {
    .hero-copy,
    .hero-stats,
    .form-shell,
    .thank-you-card {
        border-radius: 22px;
    }

    .hero-copy {
        padding: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .form-shell-top h2,
    .thank-you-card h1,
    .login-showcase h1,
    .admin-page-head h1 {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
        line-height: 1.02;
    }

    .form-shell-top {
        flex-direction: column;
    }

    .step-badge {
        min-width: auto;
        width: 100%;
        text-align: left;
    }

    .step-nav {
        position: sticky;
        top: 0.45rem;
        z-index: 9;
        margin-inline: -0.2rem;
        padding: 0.2rem 0.2rem 0.55rem;
        background: linear-gradient(180deg, rgba(255, 250, 248, 0.95), rgba(255, 250, 248, 0.72), transparent);
    }

    .step-chip {
        min-height: 50px;
        padding: 0.55rem 0.7rem;
    }

    .step-chip small {
        font-size: 0.72rem;
    }

    .form-step.is-active {
        padding: 0.65rem;
    }

    .section-header {
        gap: 0.7rem;
    }

    .section-header h3,
    .sub-card h4 {
        font-size: 1.16rem;
    }

    .field input,
    .field select,
    .field textarea,
    .upload-field input {
        font-size: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step-actions > * {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .submit-button.is-visible {
        flex-basis: 100%;
    }

    .optional-panel summary {
        padding: 0.75rem 0.85rem;
    }

    .optional-panel-body {
        padding: 0 0.85rem 0.85rem;
    }
}
