.gp-form-shell,
.gp-form-shell * {
    box-sizing: border-box;
}

.gp-form-shell {
    --ba-primary: #788ED9;
    --ba-primary-dark: #526FC7;
    --ba-ink: #18213f;
    --ba-muted: #66708f;
    --ba-soft: #f8faff;
    --ba-line: rgba(120, 142, 217, 0.22);
    --ba-glow: rgba(120, 142, 217, 0.24);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 28px;
    color: var(--ba-ink);
    font-family: inherit;
    padding: clamp(10px, 2vw, 18px);
    background:
        radial-gradient(circle at 8% 12%, rgba(120, 142, 217, 0.12), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(211, 220, 250, 0.85), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fbfcff 46%, #f3f6ff 100%);
}

.gp-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    pointer-events: none;
}

.gp-orb-one {
    width: 310px;
    height: 310px;
    top: -145px;
    right: 8%;
    background: rgba(120, 142, 217, 0.24);
}

.gp-orb-two {
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: 4%;
    background: rgba(201, 211, 246, 0.72);
}

.gp-orb-three {
    width: 190px;
    height: 190px;
    right: 23%;
    bottom: 14%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(120, 142, 217, 0.12);
}

.gp-form-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(20px, 3.8vw, 46px);
    border: 1px solid var(--ba-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 28px 80px rgba(47, 69, 141, 0.13);
}

.gp-form-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.gp-eyebrow,
.gp-kicker {
    margin: 0 0 8px;
    color: var(--ba-primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gp-main-title {
    margin: 0;
    color: var(--ba-ink);
    font-size: clamp(27px, 4.4vw, 48px);
    line-height: 1.04;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.gp-step-pill {
    flex: 0 0 auto;
    border: 1px solid var(--ba-line);
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--ba-primary-dark);
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(120, 142, 217, 0.14);
}

.gp-progress-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(120, 142, 217, 0.14);
    overflow: hidden;
    margin-bottom: clamp(24px, 4vw, 38px);
}

.gp-progress-fill {
    display: block;
    height: 100%;
    width: 16.666%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ba-primary), #a8b8ee);
    box-shadow: 0 0 18px rgba(120, 142, 217, 0.38);
    transition: width 260ms ease;
}

.gp-form {
    width: 100%;
    max-width: 100%;
}

.gp-step {
    display: none;
    width: 100%;
    animation: gpFadeIn 280ms ease both;
}

.gp-step.is-active {
    display: block;
}

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

.gp-step-header {
    max-width: 780px;
    margin-bottom: 24px;
}

.gp-step-header h3,
.gp-success-card h3 {
    margin: 0 0 9px;
    color: var(--ba-ink);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.gp-step-header p,
.gp-success-card p {
    margin: 0;
    color: var(--ba-muted);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.65;
}

.gp-persona-grid,
.gp-card-grid,
.gp-field-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.gp-persona-grid,
.gp-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.gp-persona-card,
.gp-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 106px;
    text-align: left;
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--ba-line);
    border-radius: 22px;
    padding: 19px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ba-ink) !important;
    box-shadow: 0 16px 38px rgba(58, 80, 150, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gp-persona-card::before,
.gp-option-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 10%, rgba(120, 142, 217, 0.16), transparent 38%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.gp-persona-card:hover,
.gp-option-card:hover,
.gp-persona-card.is-selected,
.gp-option-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(120, 142, 217, 0.62);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 48px rgba(120, 142, 217, 0.18);
}

.gp-persona-card:hover::before,
.gp-option-card:hover::before,
.gp-persona-card.is-selected::before,
.gp-option-card.is-selected::before {
    opacity: 1;
}

.gp-persona-card span,
.gp-option-card span,
.gp-persona-card small {
    position: relative;
    z-index: 1;
}

.gp-persona-card span,
.gp-option-card span {
    display: block;
    color: var(--ba-ink) !important;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.gp-persona-card small {
    display: block;
    margin-top: 9px;
    color: var(--ba-muted);
    font-size: 13px;
    line-height: 1.55;
}

.gp-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gp-option-card {
    min-height: 84px;
    justify-content: center;
}

.gp-option-card::after,
.gp-persona-card::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(120, 142, 217, 0.22);
    box-shadow: 0 0 0 6px rgba(120, 142, 217, 0.08);
}

.gp-option-card.is-selected::after,
.gp-persona-card.is-selected::after {
    background: var(--ba-primary);
}

.gp-choice-label {
    margin: 0 0 13px;
    color: var(--ba-primary-dark);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.gp-field {
    width: 100%;
    min-width: 0;
}

.gp-field label {
    display: block;
    margin: 0 0 9px;
    color: var(--ba-ink);
    font-size: 14px;
    font-weight: 700;
}

.gp-field input,
.gp-field select,
.gp-field textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--ba-line);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ba-ink);
    font: inherit;
    outline: none;
    box-shadow: 0 12px 28px rgba(58, 80, 150, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gp-field textarea {
    min-height: 132px;
    resize: vertical;
    grid-column: 1 / -1;
}

.gp-field input::placeholder,
.gp-field textarea::placeholder {
    color: rgba(102, 112, 143, 0.74);
}

.gp-field input:focus,
.gp-field select:focus,
.gp-field textarea:focus {
    border-color: rgba(120, 142, 217, 0.76);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(120, 142, 217, 0.13), 0 16px 36px rgba(58, 80, 150, 0.08);
}

.gp-field:has(textarea) {
    grid-column: 1 / -1;
}

.gp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: clamp(24px, 4vw, 38px);
}

.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 13px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gp-btn:hover {
    transform: translateY(-1px);
}

.gp-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ba-primary), var(--ba-primary-dark));
    border-color: rgba(120, 142, 217, 0.5);
    box-shadow: 0 16px 34px rgba(120, 142, 217, 0.26);
}

.gp-btn-primary:hover,
.gp-btn-primary:focus {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ba-primary-dark), #435fb5);
}

.gp-btn-secondary {
    color: var(--ba-primary-dark) !important;
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--ba-line);
    box-shadow: 0 10px 26px rgba(58, 80, 150, 0.08);
}

.gp-btn-secondary:hover,
.gp-btn-secondary:focus {
    color: var(--ba-primary-dark) !important;
    background: #fff;
    border-color: rgba(120, 142, 217, 0.48);
}

.gp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.gp-form-error {
    display: none;
    margin-top: 20px;
    border: 1px solid rgba(190, 72, 72, 0.18);
    border-radius: 16px;
    padding: 13px 15px;
    color: #9f3030;
    background: rgba(255, 246, 246, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.gp-form-error.is-visible {
    display: block;
}

.gp-success-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--ba-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 64px rgba(58, 80, 150, 0.1);
}

.gp-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ba-primary), #a8b8ee);
    box-shadow: 0 16px 38px rgba(120, 142, 217, 0.26);
}

.gp-success-mark::before {
    content: "";
    width: 27px;
    height: 15px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg) translate(2px, -2px);
}

@media (max-width: 1024px) {
    .gp-persona-grid,
    .gp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gp-form-shell {
        border-radius: 20px;
        padding: 8px;
    }

    .gp-form-panel {
        border-radius: 20px;
        padding: 20px;
    }

    .gp-form-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .gp-step-pill {
        padding: 8px 12px;
    }

    .gp-persona-grid,
    .gp-card-grid,
    .gp-field-grid {
        grid-template-columns: 1fr;
    }

    .gp-persona-card,
    .gp-option-card {
        min-height: auto;
        padding: 17px;
    }

    .gp-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gp-btn {
        width: 100%;
    }
}
