:root {
    --page: #fafaf7;
    --surface: #ffffff;
    --ink: #5a5957;
    --muted: #84827e;
    --line: #dfddda;
    --accent: #e2c670;
    --accent-dark: #c9ac4e;
    --gold-light: #f0dfa3;
    --danger: #9f2f2f;
    --danger-background: #fff5f4;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--ink);
    font-family: "Inter", sans-serif;
    line-height: 1.55;
}

.page-shell {
    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 56px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(44px, 8vw, 112px);
    align-items: center;
}

.intro {
    max-width: 570px;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Playfair Display", serif;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.intro-copy {
    max-width: 510px;
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-figure {
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--gold-light);
    box-shadow: var(--shadow);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.service-details {
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
}

.service-details div {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.service-details dt {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 500;
}

.service-details dd {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.form-panel {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-intro {
    margin: 12px 0 30px;
    color: var(--muted);
    font-size: 0.94rem;
}

.field-group {
    margin-bottom: 20px;
}

.checkout-summary {
    margin: 28px 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.checkout-summary div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.checkout-summary strong {
    font-size: 1.12rem;
    font-weight: 500;
}

.checkout-summary small,
.secure-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.secure-note {
    margin: 15px 0 0;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.96rem;
}

input::placeholder {
    color: #8a938e;
}

input:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(194, 158, 72, 0.35);
    outline-offset: 2px;
}

input:focus {
    border-color: var(--accent-dark);
}

button {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #201b10;
    cursor: pointer;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 500;
}

button:hover:not(:disabled) {
    background: var(--accent-dark);
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.message {
    margin: 22px 0;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.9rem;
}

.message-error {
    border-color: #edc5c1;
    background: var(--danger-background);
    color: var(--danger);
}

.message ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.success-view {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The component uses flex once a request succeeds. This explicit selector
   preserves the native hidden attribute until JavaScript reveals the view. */
.success-view[hidden] {
    display: none;
}

.success-view p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
}

.success-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #e3f1e9;
    color: #287254;
    font-size: 1.8rem;
}

.secondary-button {
    margin-top: 26px;
    border: 1px solid var(--accent-dark);
    background: transparent;
    color: #735c20;
}

.secondary-button:hover:not(:disabled) {
    background: #fbf6e6;
}

@media (max-width: 820px) {
    .page-shell {
        width: min(620px, calc(100% - 32px));
        padding: 32px 0 48px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .intro-copy {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .page-shell {
        width: min(100% - 24px, 620px);
        padding-top: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .form-panel {
        padding: 28px 20px;
    }

    .service-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
