:root {
    --lpmp-maroon: #551013;
    --lpmp-maroon-deep: #360606;
    --lpmp-orange: #d0721b;
    --lpmp-orange-dark: #c26319;
    --lpmp-cream: #fffaf2;
    --lpmp-warm: #f9f1e8;
    --lpmp-border: #ede7e0;
    --lpmp-text: #3a2421;
    --lpmp-muted: #846c62;
    --lpmp-white: #fffdfb;
    --lpmp-danger: #a22929;
}

.lpmp-wrap,
.lpmp-wrap * {
    box-sizing: border-box;
}

.lpmp-wrap {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    color: var(--lpmp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lpmp-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 0%, rgba(208, 114, 27, .08), transparent 30%),
        linear-gradient(180deg, var(--lpmp-white), #fff 72%);
    border: 1px solid var(--lpmp-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(67, 30, 16, .10);
}

.lpmp-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lpmp-maroon), var(--lpmp-orange));
}

.lpmp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #f4ebe4;
    color: var(--lpmp-maroon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
}

.lpmp-badge-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(85, 16, 19, .18);
    border-radius: 50%;
    font-size: 13px;
}

.lpmp-progress {
    margin: 0 0 25px;
}

.lpmp-progress-line {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0e7df;
}

.lpmp-progress-line span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lpmp-maroon), var(--lpmp-orange));
    transition: width .28s ease;
}

.lpmp-progress.is-step-2 .lpmp-progress-line span {
    width: 100%;
}

.lpmp-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #a38a80;
    font-size: 11px;
    font-weight: 600;
}

.lpmp-progress-labels span.is-active {
    color: var(--lpmp-maroon);
}

.lpmp-heading {
    margin-bottom: 22px;
}

.lpmp-heading h3 {
    margin: 0 0 8px !important;
    color: var(--lpmp-maroon-deep) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 5vw, 32px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -.02em;
}

.lpmp-heading p {
    margin: 0 !important;
    color: var(--lpmp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.lpmp-step[hidden] {
    display: none !important;
}

.lpmp-step.is-entering {
    animation: lpmpFade .25s ease both;
}

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

.lpmp-field {
    margin-bottom: 17px;
}

.lpmp-field label,
.lpmp-field legend {
    display: block;
    margin: 0 0 7px;
    color: var(--lpmp-maroon-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.lpmp-field label > span,
.lpmp-field legend > span {
    color: var(--lpmp-orange);
}

.lpmp-field label em {
    color: #a28b80;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.lpmp-field input[type="text"],
.lpmp-field input[type="date"],
.lpmp-field input[type="time"],
.lpmp-field input[type="email"],
.lpmp-field input[type="tel"],
.lpmp-field textarea {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e8ddd4;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--lpmp-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: 0 1px 0 rgba(54, 6, 6, .02);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

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

.lpmp-field input::placeholder,
.lpmp-field textarea::placeholder {
    color: #b2a29a;
}

.lpmp-field input:focus,
.lpmp-field textarea:focus {
    border-color: rgba(208, 114, 27, .7);
    box-shadow: 0 0 0 4px rgba(208, 114, 27, .10);
    background: #fffdfb;
}

.lpmp-field input.lpmp-invalid,
.lpmp-field textarea.lpmp-invalid,
.lpmp-segmented.lpmp-invalid {
    border-color: var(--lpmp-danger);
    box-shadow: 0 0 0 3px rgba(162, 41, 41, .08);
}

.lpmp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lpmp-grid-2 .lpmp-field {
    min-width: 0;
}

.lpmp-gender-field,
.lpmp-delivery-field {
    margin: 0 0 17px;
    padding: 0;
    border: 0;
}

.lpmp-segmented {
    display: grid;
    gap: 6px;
    padding: 5px;
    border: 1px solid #eadfd6;
    border-radius: 13px;
    background: var(--lpmp-warm);
}

.lpmp-gender-switch {
    grid-template-columns: 1fr 1fr;
}

.lpmp-delivery-switch {
    grid-template-columns: repeat(3, 1fr);
}

.lpmp-segmented label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.lpmp-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lpmp-segmented label span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #7a5f55;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: all .18s ease;
}

.lpmp-segmented input:checked + span {
    background: #fff;
    color: var(--lpmp-maroon);
    box-shadow: 0 3px 11px rgba(82, 34, 18, .09), inset 0 0 0 1px rgba(85, 16, 19, .08);
}

.lpmp-segmented input:focus-visible + span {
    outline: 3px solid rgba(208, 114, 27, .22);
    outline-offset: 1px;
}

.lpmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 4px 0 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #d8791f, var(--lpmp-orange-dark));
    color: #fff !important;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(193, 94, 24, .20);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.lpmp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 23px rgba(193, 94, 24, .25);
    filter: saturate(1.04);
}

.lpmp-btn:active {
    transform: translateY(0);
}

.lpmp-btn:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.lpmp-arrow {
    font-size: 21px;
    line-height: 1;
}

.lpmp-actions {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 10px;
    align-items: stretch;
}

.lpmp-back {
    min-height: 52px;
    padding: 11px 14px;
    border: 1px solid #e4d6cc;
    border-radius: 10px;
    background: #fff;
    color: var(--lpmp-maroon);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lpmp-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 5px 0 17px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8ef;
    color: #856b5d;
    font-size: 11px;
    line-height: 1.5;
}

.lpmp-message {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.lpmp-message.is-error,
.lpmp-message.is-success {
    display: block;
}

.lpmp-message.is-error {
    background: #fff0f0;
    color: #8f2424;
}

.lpmp-message.is-success {
    background: #f1f8ef;
    color: #356a2e;
}

@media (max-width: 640px) {
    .lpmp-wrap {
        max-width: 100%;
    }

    .lpmp-card {
        border-radius: 18px;
        padding: 21px 16px 18px;
        box-shadow: 0 12px 35px rgba(67, 30, 16, .09);
    }

    .lpmp-badge {
        margin-bottom: 16px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .lpmp-progress {
        margin-bottom: 20px;
    }

    .lpmp-heading {
        margin-bottom: 18px;
    }

    .lpmp-heading h3 {
        font-size: 25px !important;
    }

    .lpmp-heading p {
        font-size: 13px;
    }

    .lpmp-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lpmp-field {
        margin-bottom: 15px;
    }

    .lpmp-field input[type="text"],
    .lpmp-field input[type="date"],
    .lpmp-field input[type="time"],
    .lpmp-field input[type="email"],
    .lpmp-field input[type="tel"],
    .lpmp-field textarea {
        min-height: 49px;
        border-radius: 11px;
        font-size: 16px; /* avoids iOS zoom */
    }

    .lpmp-delivery-switch {
        grid-template-columns: 1fr;
    }

    .lpmp-delivery-switch label span {
        min-height: 42px;
    }

    .lpmp-actions {
        grid-template-columns: 92px 1fr;
    }
}

@media (max-width: 390px) {
    .lpmp-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .lpmp-actions {
        grid-template-columns: 1fr;
    }

    .lpmp-back {
        order: 2;
    }

    .lpmp-submit {
        order: 1;
    }
}
