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

:root {
    --green-deep:   #0a1c10;
    --green-dark:   #0f2318;
    --green-mid:    #1c3a28;
    --gold:         #c9a84c;
    --gold-muted:   #8a6520;
    --cream:        #f5f0e8;
    --cream-soft:   #ede8de;
    --text-light:   rgba(245,240,232,0.9);
    --text-muted:   rgba(245,240,232,0.5);
    --shadow:       0 24px 60px rgba(0,0,0,0.45);
}
html {
    height: 100%;
    overflow: visible;
}

body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: url(../img/heritage-bg.webp) center / cover;
}

/* ── Layout ── */
.container {
    display: grid;
    grid-template-columns: 32% 68%;
    height: 100vh;
    max-width: 100%;
    overflow: hidden;
}

/* ── Left: brand panel ── */
.left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: clamp(2rem, 4vw, 4rem);
    background: var(--green-dark);
    height: 100%;
    overflow: hidden;
}

.left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/heritage-bg.webp') center/cover;
    opacity: 0.12;
    pointer-events: none;
}

.left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.5;
}

.product-panel {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.brand-visual {
    display: grid;
    place-items: center;
}

.brand-logo {
    width: min(100%, 350px);
    object-fit: contain;
    filter: drop-shadow(0 32px 48px rgba(0,0,0,0.55));
    margin-bottom: 0rem;
}

.brand-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--gold);
}

.brand-tagline::before,
.brand-tagline::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    opacity: 0.6;
}

.brand-tagline::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.product-caption {
    display: block;
    margin-bottom: 1.25rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gold-muted), var(--gold) 50%, var(--gold-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy {
    max-width: 32ch;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ── Right: form panel ── */
.right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem);
    background: var(--cream);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.form-box {
    width: 100%;
    max-width: 950px;
    padding-bottom: 2rem;
}

.form-card {
    background: transparent;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    line-height: 1.15;
    color: var(--green-mid);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.intro {
    font-size: 1.02rem;
    color: rgba(28,58,40,0.65);
    line-height: 1.55;
    max-width: 60ch;
}

.form-header {
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(28,58,40,0.12);
}

/* ── Form ── */
form {
    display: grid;
}

.section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(28,58,40,0.1);
}

.section:last-of-type { border-bottom: 0; }

.section-title {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.section-title h2,
.section-title legend {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-mid);
}

.section-title h2 sup,
.section-title legend sup {
    top: -0.4em;
    color: #b5332b;
}

.section-title span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    color: rgba(28,58,40,0.55);
}

.section-fields {
    display: grid;
    gap: 1rem;
}

.section--full {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.section--full .section-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

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

label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(28,58,40,0.8);
}

/* inputs */
input,
textarea,
select {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(28,58,40,0.14);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--green-mid);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2rem;
}

textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.6;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.16);
}

::placeholder { color: rgba(28,58,40,0.35); }

input[type="file"] {
    display: none;
}

fieldset { border: 0; }

/* ── Product cards ── */
.product-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.product-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(28,58,40,0.1);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.product-card em {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-muted);
}

.product-card strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: var(--green-mid);
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.product-options input:checked + .product-card {
    background: var(--green-mid);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(28,58,40,0.2);
}

.product-options input:checked + .product-card em { color: var(--gold); }
.product-options input:checked + .product-card strong { color: #fff; }

/* ── Rating cards ── */
.rating-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.rating-options input,
.chip-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-card {
    display: grid;
    place-items: center;
    min-height: 4.5rem;
    padding: 0.6rem 0.25rem;
    border: 1px solid rgba(28,58,40,0.1);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.rating-card strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--green-mid);
}

.rating-card span {
    margin-top: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: rgba(28,58,40,0.65);
}

.rating-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.rating-options input:checked + .rating-card {
    background: var(--green-mid);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(28,58,40,0.2);
}

.rating-options input:checked + .rating-card strong,
.rating-options input:checked + .rating-card span {
    color: var(--gold);
}

/* ── Chips ── */
.chip-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(28,58,40,0.15);
    border-radius: 999px;
    background: #fffdf8;
    color: #807562;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
	letter-spacing: normal;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}

.chip:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.chip-options input:checked + .chip {
    background: #f2dfb0;
    border-color: var(--gold-muted);
    color: var(--green-mid);
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138,101,32,0.18);
}

/* ── Upload ── */
.upload-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px dashed rgba(28,58,40,0.2);
    border-radius: 10px;
    background: #fffdf8;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.upload-box:hover {
    border-color: var(--gold);
    background: rgba(237,232,222,0.5);
}

.upload-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ecdfb8;
    color: var(--green-mid);
}

.upload-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-copy strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green-mid);
    margin-bottom: 0.4rem;
}

.upload-hint {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(28,58,40,0.55);
    line-height: 1.65;
}

.upload-filename {
    display: block;
    margin-top: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-muted);
}

/* ── Consent ── */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.92rem;
    color: rgba(28,58,40,0.75);
    line-height: 1.6;
    padding-top: 0rem;
	padding-bottom: 1rem;
	letter-spacing: normal;
	font-weight: 500;
}

.consent input {
    width: 1rem;
    min-height: 1rem;
    margin-top: 0.2rem;
    accent-color: var(--gold-muted);
    border: 0;
    flex-shrink: 0;
}

/* ── Actions ── */
.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

button[type="submit"] {
    min-height: 3rem;
    padding: 0.75rem 2.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-muted) 0%, var(--gold) 50%, var(--gold-muted) 100%);
    background-size: 200% auto;
    color: #1a0e00;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: background-position 0.4s, box-shadow 0.2s, transform 0.18s;
    box-shadow: 0 8px 24px rgba(201,168,76,0.28);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button[type="submit"]:hover {
    background-position: right center;
    box-shadow: 0 12px 30px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}

.helper {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    color: rgba(28,58,40,0.6);
    line-height: 1.5;
}

.form-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.form-status.ok { color: #1c7c3a; }
.form-status.error { color: #b5332b; }

/* ── Responsive ── */
@media (min-width: 1280px) {
    .left {
        padding: 4rem;
    }

    .right {
        padding: 3.5rem 2rem;
    }

    h1 {
        font-size: 2.35rem;
    }
}

@media (max-width: 1500px) {
    .container {
        grid-template-columns: 36% 64%;
    }
}

@media (max-width: 900px) {
    html, body {
        height: auto;
        overflow: visible;
        overflow-x: hidden;
    }

    .container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        overflow-x: hidden;
    }

    .left {
        height: auto;
        padding: 2.5rem 1.5rem;
    }

    .right {
        height: auto;
        overflow-y: visible;
        padding: 2rem 1.25rem 3rem;
    }
}

@media (max-width: 700px) {
    .section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 560px) {
    .field-grid,
    .product-options { grid-template-columns: 1fr 1fr; }

    .rating-options {
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }
    .rating-options::-webkit-scrollbar { display: none; }

    .rating-card { min-height: 4rem; }

    .actions { flex-direction: column; align-items: stretch; }
    button[type="submit"] { width: 100%; text-align: center; }
}
