* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.template-partner-signup main {
    padding: 0;
    margin: 0;
}

.ps-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

/* ── Left dark panel ── */

.ps-panel-left {
    background: #111111;
    display: flex;
    align-items: flex-start;
    padding: 80px 72px 80px;
    box-sizing: border-box;
    min-height: 100%;
}

.ps-panel-left-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 400px;
}

.ps-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.ps-back-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.ps-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.ps-heading {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.04em;
}

.ps-body {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.78;
    margin: 0;
}

.ps-feature-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-feature-list li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.5;
    position: relative;
}

.ps-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
    font-size: 1.1rem;
}

.ps-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    line-height: 1.6;
}

/* ── Right white panel ── */

.ps-panel-right {
    background: #ffffff;
    padding: 80px 72px;
    box-sizing: border-box;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.ps-form-wrapper {
    max-width: 540px;
}

.ps-form-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ps-form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.ps-form-header p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.50);
    margin: 0;
}

/* ── Form structure ── */

.ps-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ps-fieldset {
    border: none;
    padding: 0 0 32px;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ps-fieldset:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ps-fieldset-legend {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.28);
    margin: 0 0 8px;
    display: block;
}

.ps-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ps-form-row--cols-2 {
    grid-template-columns: 1fr 1fr;
}

.ps-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ps-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.58);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-required {
    color: #e53e3e;
    font-weight: 700;
}

.ps-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.35);
}

.ps-form-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 13px 16px;
    background: #f8f8f8;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    color: #000000;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.ps-form-input::placeholder {
    color: rgba(0, 0, 0, 0.28);
}

.ps-form-input:focus {
    border-color: rgba(0, 0, 0, 0.30);
    background: #ffffff;
}

.ps-form-input.invalid {
    border-color: #e53e3e;
}

.ps-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.ps-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M2 3l6 5 6-5' stroke='%23000000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.ps-form-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.60);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.ps-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #000000;
}

.ps-checkbox-label a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ps-form-agreement {
    margin: 28px 0;
}

.ps-form-agreement.invalid {
    outline: 2px solid #e53e3e;
    outline-offset: 6px;
    border-radius: 4px;
}

/* ── Submit button ── */

.ps-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.ps-submit-btn:hover {
    background: rgba(0, 0, 0, 0.82);
}

.ps-submit-arrow {
    transition: transform 0.25s ease;
}

.ps-submit-btn:hover .ps-submit-arrow {
    transform: translateX(4px);
}

.ps-form-note {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.32);
    margin: 14px 0 0;
    line-height: 1.5;
}

/* ── Messages ── */

.ps-message {
    padding: 48px 0;
    display: none;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.ps-message--success.is-visible,
.ps-message--warning.is-visible {
    display: flex;
}

.ps-message-icon {
    font-size: 2rem;
    color: #000000;
}

.ps-message--warning .ps-message-icon {
    color: #d97706;
}

.ps-message h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    letter-spacing: -0.03em;
}

.ps-message p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.50);
    line-height: 1.65;
    margin: 0;
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .ps-page {
        grid-template-columns: 1fr;
    }

    .ps-panel-left {
        position: static;
        height: auto;
        padding: 80px 40px 60px;
        align-items: flex-start;
    }

    .ps-panel-right {
        padding: 60px 40px 80px;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 600px) {
    .ps-panel-left {
        padding: 60px 24px 48px;
    }

    .ps-panel-right {
        padding: 48px 24px 64px;
    }

    .ps-form-row--cols-2 {
        grid-template-columns: 1fr;
    }

    .ps-form-checkboxes {
        grid-template-columns: 1fr;
    }

    .ps-heading {
        font-size: 2rem;
    }
}
