:root {
    --bg: #f2f2f2;
    --navy: #1d3a52;
    --sand: #d9c2ad;
    --brown: #593325;
    --red: #d62929;
    --white: #ffffff;
    --text: #253746;
    --line: rgba(29, 58, 82, 0.12);
    --shadow: 0 24px 60px rgba(29, 58, 82, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 194, 173, 0.35), transparent 32%),
        linear-gradient(180deg, #f8f7f5 0%, var(--bg) 100%);
    color: var(--text);
}

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

.page-shell { min-height: 100vh; }

.hero {
    background:
        linear-gradient(135deg, rgba(29, 58, 82, 0.96), rgba(29, 58, 82, 0.82)),
        linear-gradient(120deg, rgba(217, 194, 173, 0.12), transparent 60%);
    color: var(--white);
    padding: 56px 20px 140px;
}

.hero__content, .content-shell { width: min(1100px, 100%); margin: 0 auto; }
.hero__logo { max-width: 220px; width: 100%; height: auto; display: block; }

.hero__eyebrow, .panel__eyebrow, .success-box__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__eyebrow {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.8;
}

.content-shell {
    width: min(1100px, calc(100% - 32px));
    margin-top: -84px;
    margin-bottom: 56px;
    display: grid;
    gap: 24px;
}

.panel {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.panel--intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    padding: 28px;
}

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

.panel--intro h2, .panel--form h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.panel--intro p {
    margin: 12px 0 0;
    line-height: 1.8;
    color: rgba(37, 55, 70, 0.78);
}

.intro-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.intro-list li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(242, 242, 242, 0.8), rgba(255, 255, 255, 0.98));
    font-weight: 600;
    color: var(--navy);
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel__eyebrow {
    margin-top: 0;
    background: rgba(29, 58, 82, 0.08);
    color: var(--navy);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(217, 194, 173, 0.28);
    color: var(--brown);
    font-size: 0.92rem;
    font-weight: 700;
}

.feedback-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 600;
}

.feedback-box--error { background: rgba(214, 41, 41, 0.08); color: var(--red); }

.request-form { display: grid; gap: 18px; }

.form-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 245, 0.96));
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.section-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(29, 58, 82, 0.08);
    color: var(--navy);
    font-weight: 800;
}

.section-title h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.section-title p { margin: 6px 0 0; color: rgba(37, 55, 70, 0.72); line-height: 1.6; }

.form-grid { display: grid; gap: 16px; }
.form-grid--one { grid-template-columns: 1fr; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { display: grid; gap: 8px; }
.field--full, .field--span-2 { grid-column: 1 / -1; }
.field span { font-size: 0.94rem; font-weight: 700; color: var(--navy); }
.field-help {
    font-size: 0.82rem;
    color: var(--navy);
}

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid rgba(29, 58, 82, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: rgba(29, 58, 82, 0.5);
    box-shadow: 0 0 0 4px rgba(29, 58, 82, 0.08);
}

.check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(29, 58, 82, 0.05);
    border: 1px solid rgba(29, 58, 82, 0.1);
    font-weight: 700;
    color: var(--navy);
}

.conditional-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px dashed rgba(29, 58, 82, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.product-picker { position: relative; }

.picker-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(29, 58, 82, 0.16);
}

.picker-result, .selected-product {
    display: grid;
    gap: 12px;
    align-items: center;
}

.picker-result {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    padding: 10px;
    border-radius: 18px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.picker-result:hover { background: rgba(29, 58, 82, 0.05); }

.picker-result__thumb, .selected-product__thumb {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
}

.picker-result__thumb {
    width: 68px;
    height: 68px;
    border-radius: 18px;
}

.selected-product {
    margin-top: 14px;
    padding: 14px;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    border-radius: 22px;
    background: rgba(29, 58, 82, 0.04);
}

.selected-product__thumb {
    width: 82px;
    height: 82px;
    border-radius: 20px;
}

.picker-result__thumb img, .selected-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picker-result__name, .selected-product__name {
    margin: 0;
    font-weight: 800;
    color: var(--navy);
}

.picker-result__meta, .selected-product__meta {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: rgba(37, 55, 70, 0.72);
}

.picker-result__action, .selected-product__change, .success-box__button, .submit-button {
    border: none;
    cursor: pointer;
}

.picker-result__action, .selected-product__change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-width: 162px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-decoration: none;
    text-shadow: none;
}

.upload-dropzone {
    min-height: 220px;
    padding: 24px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 24px;
    border: 2px dashed rgba(29, 58, 82, 0.16);
    background: linear-gradient(180deg, rgba(248, 247, 245, 0.9), rgba(255, 255, 255, 0.96));
    color: rgba(37, 55, 70, 0.8);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.is-dragover {
    border-color: rgba(29, 58, 82, 0.36);
    background: rgba(29, 58, 82, 0.04);
    transform: translateY(-1px);
}

.upload-dropzone__icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(29, 58, 82, 0.08);
    color: var(--navy);
    font-size: 2rem;
    font-weight: 600;
}

.upload-dropzone h4 { margin: 0; font-size: 1.12rem; color: var(--navy); }
.upload-dropzone p { max-width: 420px; margin: 10px 0 0; line-height: 1.7; }
.upload-summary { margin-top: 12px; font-size: 0.92rem; color: rgba(37, 55, 70, 0.72); }
.upload-list { margin-top: 14px; display: grid; gap: 10px; }

.upload-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 58, 82, 0.1);
}

.upload-item__name { margin: 0; font-weight: 700; color: var(--navy); }
.upload-item__meta { margin: 4px 0 0; font-size: 0.86rem; color: rgba(37, 55, 70, 0.7); }
.upload-item__remove {
    min-width: 42px;
    min-height: 42px;
    border-radius: 14px;
    border: none;
    background: rgba(214, 41, 41, 0.08);
    color: var(--red);
    font-weight: 800;
    cursor: pointer;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
}

.form-footer__note {
    margin: 0;
    max-width: 620px;
    color: rgba(37, 55, 70, 0.72);
    line-height: 1.7;
}

.submit-button, .success-box__button {
    min-width: 220px;
    min-height: 56px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy), #284c69);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(29, 58, 82, 0.18);
}

.submit-button[disabled] { opacity: 0.72; cursor: wait; }

.submit-button__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--white);
    border-radius: 999px;
    animation: spin 0.9s linear infinite;
}

.success-box {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(29, 58, 82, 0.95), rgba(29, 58, 82, 0.88));
    color: var(--white);
    text-align: center;
}

.success-box__eyebrow { background: rgba(255, 255, 255, 0.12); }
.success-box h3 { margin: 18px 0 8px; font-size: 2rem; }
.success-box p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.success-box strong { display: block; margin-top: 18px; font-size: 1.8rem; letter-spacing: 0.08em; }
.success-box__button { margin-top: 24px; background: var(--white); color: var(--navy); }

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

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
    .panel--intro, .form-footer, .panel__header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .form-grid--two, .form-grid--three { grid-template-columns: 1fr; }
    .selected-product, .picker-result { grid-template-columns: 1fr; }
    .submit-button, .success-box__button { width: 100%; }
}

@media (max-width: 640px) {
    .hero { padding: 40px 16px 128px; }
    .content-shell { width: min(100% - 20px, 1100px); margin-top: -72px; }
    .panel--intro, .panel--form, .form-card { padding: 20px; }
}
