:root {
    --sjp-blue: #00005a;
    --sjp-blue-2: #101c7a;
    --sjp-gold: #f2c94c;
    --sjp-bg: #f4f6fb;
    --sjp-border: #d8ddec;
    --sjp-text: #111827;
    --sjp-muted: #657084;
    --sjp-white: #ffffff;
}

body.sjp-feedback-standalone-page {
    margin: 0 !important;
    background: var(--sjp-bg);
    overflow-x: hidden;
}

body.sjp-feedback-standalone-page .sjp-standalone-main {
    min-height: 100vh;
}

body.sjp-feedback-standalone-page .sjp-feedback-wrap {
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

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

.sjp-feedback-wrap {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: clamp(20px, 4vw, 56px);
    background: var(--sjp-bg);
    color: var(--sjp-text);
    font-family: inherit;
    overflow-x: hidden;
}

.sjp-feedback-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.sjp-feedback-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    background: linear-gradient(135deg, var(--sjp-blue), var(--sjp-blue-2));
    color: #fff;
    border-radius: 30px;
    padding: clamp(24px, 5vw, 56px);
    margin-bottom: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 90, .18);
}

.sjp-hero-logo {
    width: clamp(88px, 11vw, 132px);
    height: clamp(88px, 11vw, 132px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.sjp-site-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sjp-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: var(--sjp-blue);
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.sjp-feedback-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 800;
    color: var(--sjp-gold);
}

.sjp-feedback-hero h1 {
    color: #fff;
    font-size: clamp(36px, 7vw, 76px);
    line-height: .96;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.sjp-feedback-hero p {
    margin: 0;
    max-width: 740px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.sjp-feedback-message {
    border-radius: 18px;
    padding: 16px 18px;
    margin: 18px 0;
    font-weight: 700;
}

.sjp-feedback-success {
    background: #e8f8ef;
    border: 1px solid #b8e5c8;
    color: #14532d;
}

.sjp-feedback-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.sjp-feedback-error p {
    margin: 0 0 8px;
}

.sjp-feedback-error p:last-child {
    margin-bottom: 0;
}

.sjp-card {
    background: var(--sjp-white);
    border: 1px solid var(--sjp-border);
    border-radius: 26px;
    padding: clamp(20px, 3vw, 34px);
    margin: 18px 0;
    box-shadow: 0 16px 45px rgba(0, 0, 90, .08);
}

.sjp-card h2 {
    margin: 0 0 18px;
    color: var(--sjp-blue);
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.sjp-card-intro {
    margin: -8px 0 20px;
    color: var(--sjp-muted);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
}

.sjp-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.sjp-grid > * {
    width: 100%;
    min-width: 0;
}

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

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

.sjp-question-stack {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.sjp-field,
.sjp-feedback-form label,
.sjp-feedback-form fieldset {
    display: block;
    float: none;
    margin: 0 0 18px;
}

.sjp-grid .sjp-field,
.sjp-choice-field .sjp-other-field {
    margin-bottom: 0;
}

.sjp-feedback-form label span,
.sjp-feedback-form legend,
.sjp-choice-field > label span {
    display: block;
    font-weight: 850;
    color: var(--sjp-blue);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.sjp-feedback-form strong {
    color: var(--sjp-blue);
}

.sjp-feedback-form input[type="text"],
.sjp-feedback-form input[type="email"],
.sjp-feedback-form select,
.sjp-feedback-form textarea {
    width: 100% !important;
    max-width: 100%;
    border: 1px solid var(--sjp-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: var(--sjp-text) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}

.sjp-feedback-form input[type="text"],
.sjp-feedback-form input[type="email"],
.sjp-feedback-form select {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 16px !important;
}

.sjp-feedback-form select {
    cursor: pointer;
    display: block;
}

.sjp-feedback-form textarea {
    min-height: 116px;
    padding: 14px 15px !important;
    resize: vertical;
}

.sjp-feedback-form input:focus,
.sjp-feedback-form select:focus,
.sjp-feedback-form textarea:focus {
    outline: 3px solid rgba(0, 0, 90, .16);
    border-color: var(--sjp-blue);
}

.sjp-rating-select-field {
    margin-bottom: 0;
}

.sjp-rating-select-field select {
    max-width: 520px;
}

.sjp-rating-select-field small {
    display: block;
    margin-top: 7px;
    color: var(--sjp-muted);
    font-size: 13px;
    font-weight: 700;
}

.sjp-choice-field select {
    margin-bottom: 12px;
}

.sjp-other-field {
    padding: 14px;
    border: 1px dashed var(--sjp-border);
    border-radius: 18px;
    background: #f8f9fd;
}

.sjp-other-field[hidden] {
    display: none !important;
}

.sjp-checkbox-line {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--sjp-border);
    border-radius: 16px;
    background: #f8f9fd;
}

.sjp-checkbox-line input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.sjp-checkbox-line span {
    margin: 0 !important;
    color: var(--sjp-text) !important;
    font-weight: 750 !important;
}

.sjp-consent span {
    color: var(--sjp-muted) !important;
    font-size: 14px;
    line-height: 1.45;
}

.sjp-submit {
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: var(--sjp-blue);
    color: #fff;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0, 0, 90, .20);
}

.sjp-submit:hover,
.sjp-submit:focus {
    background: #08086f;
}

@media (max-width: 920px) {
    .sjp-grid-two,
    .sjp-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .sjp-feedback-wrap {
        padding: 14px;
    }

    .sjp-feedback-hero {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .sjp-hero-logo {
        width: 88px;
        height: 88px;
    }

    .sjp-card {
        border-radius: 20px;
    }

    .sjp-feedback-form input[type="text"],
    .sjp-feedback-form input[type="email"],
    .sjp-feedback-form select,
    .sjp-feedback-form textarea {
        font-size: 16px;
    }
}

.sjp-feedback-success p {
    margin: 0 0 12px;
}

.sjp-ticket-confirmation {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(20, 83, 45, .18);
    color: #14532d;
}

.sjp-ticket-confirmation span,
.sjp-ticket-confirmation em {
    display: block;
    font-style: normal;
    font-weight: 750;
}

.sjp-ticket-confirmation strong {
    color: var(--sjp-blue);
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1;
    letter-spacing: -.04em;
}

.sjp-prize-note {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff7db;
    border: 1px solid #f3d778;
    color: #3d3200;
    font-weight: 750;
}

.sjp-prize-note strong {
    color: var(--sjp-blue);
}

/* v1.4 refinements */
.sjp-feedback-form select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: linear-gradient(45deg, transparent 50%, var(--sjp-text) 50%), linear-gradient(135deg, var(--sjp-text) 50%, transparent 50%) !important;
    background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50% !important;
    background-size: 7px 7px, 7px 7px !important;
    background-repeat: no-repeat !important;
    padding-right: 46px !important;
}

.sjp-grid-three {
    align-items: start;
}

.sjp-grid-three .sjp-choice-field > label span {
    min-height: 44px;
    display: flex;
    align-items: flex-start;
}

.sjp-contact-note {
    margin: 4px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8f9fd;
    border: 1px solid var(--sjp-border);
    color: var(--sjp-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.sjp-thank-you-screen {
    text-align: center;
    padding: clamp(28px, 5vw, 56px);
}

.sjp-thank-you-screen .sjp-ticket-confirmation {
    margin-top: 14px;
}

@media (max-width: 920px) {
    .sjp-grid-three .sjp-choice-field > label span {
        min-height: 0;
    }
}
