.signup-page {
    padding: 70px 0;
    background: #f7f8fb;
}

.signup-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 32px;
    align-items: start;
}

.signup-info-col,
.signup-form-col {
    min-width: 0;
}

.signup-info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 18px 45px rgba(11, 30, 62, 0.08);
    position: sticky;
    top: 120px;
}

.signup-info-card h1 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #0b1e3e;
    margin: 0 0 22px;
}

.signup-rules {
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    padding-top: 14px;
    margin-bottom: 28px;
}

.signup-rules__title {
    font-size: 16px;
    line-height: 1.7;
    color: #24324a;
    font-weight: 600;
    margin: 0 0 14px;
}

.signup-rules__list {
    margin: 0;
    padding-left: 24px;
    list-style: disc;
}

.signup-rules__list li {
    margin-bottom: 10px;
    color: #4b5565;
    line-height: 1.7;
    display: list-item;
}

.signup-postas-img {
    margin-top: 30px;
    text-align: center;
}

.signup-postas-img img {
    max-width: 100%;
    width: 420px;
    height: auto;
    display: inline-block;
}

.signup-wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 18px 45px rgba(11, 30, 62, 0.08);
    overflow: hidden;
}

.signup-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 12px 0 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    margin-bottom: 14px;
}

.type-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.type-pill input {
    width: 14px;
    height: 14px;
    accent-color: #e60023;
    margin: 0;
}

.signup-form--pf,
.signup-form--pj {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 22px 22px 18px;
}

.signup-form--pf .field,
.signup-form--pj .field {
    width: 100%;
    margin: 0;
}

.field label {
    display: none;
}

.req {
    color: #e60023;
    font-weight: 900;
}

.signup-form--pf input,
.signup-form--pf select,
.signup-form--pj input,
.signup-form--pj select {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: #334155;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
    box-shadow: none;
}

.signup-form--pf input::placeholder,
.signup-form--pj input::placeholder {
    color: #8a94a6;
}

.signup-form--pf select,
.signup-form--pj select {
    padding-right: 38px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, .55) 50%),
        linear-gradient(135deg, rgba(15, 23, 42, .55) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.signup-form--pf input:focus,
.signup-form--pf select:focus,
.signup-form--pj input:focus,
.signup-form--pj select:focus {
    border-color: rgba(230, 0, 35, .55);
    box-shadow: 0 0 0 4px rgba(230, 0, 35, .12);
}

.grid-addr--exact {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.signup-ramburs {
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
}

.radio-row input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #e60023;
    margin: 0;
    flex: 0 0 14px;
}

.signup-consent {
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    margin-top: 14px;
    padding-top: 14px;
    width: 100%;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.6;
}

.check-row--indent {
    padding-left: 18px;
}

.check-row input[type="checkbox"] {
    margin-top: 3px;
    width: 14px;
    height: 14px;
    accent-color: #e60023;
    flex: 0 0 14px;
}

.check-row a {
    color: #e60023;
    font-weight: 900;
    text-decoration: none;
}

.check-row a:hover {
    text-decoration: underline;
}

.consent-note {
    margin: 10px 0 6px;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
}

.consent-note a {
    color: #2563eb;
    text-decoration: none;
}

.consent-note a:hover {
    text-decoration: underline;
}

.signup-bottom--exact {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.human-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
}

.human-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #e60023;
    margin: 0;
    flex: 0 0 14px;
}

.captcha-box {
    height: 48px;
    min-width: 128px;
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
}

.signup-btn {
    justify-self: end;
    height: 46px;
    min-width: 140px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid #e60023;
    background: #e60023;
    color: #fff;
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow: 0 14px 26px rgba(230, 0, 35, .22);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(230, 0, 35, .28);
    background: #cc0020;
    color: #fff;
}

.signup-footnote {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1199.98px) {
    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-info-card {
        position: relative;
        top: auto;
    }

    .signup-info-card h1 {
        font-size: 34px;
    }

    .signup-postas-img img {
        width: 320px;
    }
}

@media (max-width: 820px) {
    .signup-bottom--exact {
        grid-template-columns: 1fr;
    }

    .signup-btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 767.98px) {
    .signup-page {
        padding: 45px 0;
    }

    .signup-info-card,
    .signup-wrap,
    .signup-form--pf,
    .signup-form--pj {
        border-radius: 18px;
    }

    .signup-wrap {
        padding: 24px 18px;
    }

    .signup-info-card {
        padding: 24px 18px;
    }

    .signup-info-card h1 {
        font-size: 28px;
    }

    .signup-rules__title,
    .signup-rules__list li {
        font-size: 15px;
    }

    .signup-postas-img img {
        width: 240px;
    }

    .grid-addr--exact {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .field-numar {
        grid-column: span 2;
    }

    .signup-type {
        gap: 18px;
        flex-wrap: wrap;
    }
}

.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.policy-modal.is-open {
    display: block;
}

.policy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.policy-modal__dialog {
    position: relative;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(11, 30, 62, 0.22);
    overflow: hidden;
    z-index: 2;
}

.policy-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #0b1e3e;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.policy-modal__close:hover {
    background: #e5e7eb;
}

.policy-modal__content {
    padding: 32px 28px 28px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.policy-modal__content h2 {
    font-size: 28px;
    line-height: 1.25;
    color: #0b1e3e;
    margin: 0 40px 20px 0;
    font-weight: 800;
}

.policy-modal__content h3 {
    font-size: 20px;
    line-height: 1.35;
    color: #0b1e3e;
    margin: 24px 0 10px;
    font-weight: 800;
}

.policy-modal__content p {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 14px;
}

.open-policy-modal {
    color: #2563eb !important;
    text-decoration: none;
    font-weight: 700;
}

.open-policy-modal:hover {
    text-decoration: underline;
}

body.policy-modal-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .policy-modal__dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 16px;
    }

    .policy-modal__content {
        padding: 22px 18px 20px;
        max-height: calc(100vh - 20px);
    }

    .policy-modal__content h2 {
        font-size: 22px;
        margin-right: 34px;
    }

    .policy-modal__content h3 {
        font-size: 18px;
    }

    .policy-modal__content p {
        font-size: 14px;
    }
}