/* Figma ES-Developer 5746:77062 — birebir ölçü: sol 690×806, form 550×806, gap 40 */
body.page-advisor-open {
    overflow-x: clip;
}

body.page-advisor-open main#main-content {
    overflow-x: clip;
    max-width: 100%;
}

.advisor-open-page {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: #fff;
    padding: 40px 0 80px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.advisor-open-page *,
.advisor-open-page *::before,
.advisor-open-page *::after {
    box-sizing: border-box;
}

.advisor-open-page .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Figma 1440 canvas: sol 77px, sağ ~80px → blok 1280px ortada */
.advisor-open-page__inner {
    width: 1280px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.advisor-open-layout {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 40px;
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
}

.advisor-open-hero {
    flex: 0 0 690px;
    width: 690px;
    height: 806px;
    border-radius: 20px;
    overflow: hidden;
    background: #dde7fd;
    line-height: 0;
}

.advisor-open-hero__panel {
    display: block;
    width: 690px;
    height: 806px;
    max-width: none;
    object-fit: cover;
    object-position: top center;
}

.advisor-open-form-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 550px;
    gap: 20px;
    width: 550px;
    height: 806px;
    padding: 25px;
    border: 1px solid #e3e8ef;
    border-radius: 20px;
    background: #fff;
}

.advisor-open-form-card__head {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    height: 32px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e3e8ef;
}

.advisor-open-form-card__head h2 {
    margin: 0;
    color: #1849a9;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.16px;
    line-height: 17px;
    height: 17px;
}

.advisor-open-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.advisor-open-fields {
    display: flex;
    flex-direction: column;
    flex: 0 0 560px;
    gap: 10px;
    width: 100%;
    height: 560px;
}

.advisor-open-field {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 0;
    width: 100%;
    height: 77px;
}

.advisor-open-field--message {
    height: 125px;
}

.advisor-open-field label,
.advisor-open-field__legend {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}

.advisor-open-field input,
.advisor-open-field select,
.advisor-open-field textarea {
    width: 100%;
    max-width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fafbff;
    color: #101828;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 19px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.advisor-open-field--message textarea {
    height: 96px;
    min-height: 96px;
    resize: none;
}

.advisor-open-field input::placeholder,
.advisor-open-field textarea::placeholder {
    color: #98a2b3;
}

.advisor-open-field select:disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

.advisor-open-field select:invalid,
.advisor-open-field select.has-placeholder {
    color: #98a2b3;
}

.advisor-open-field select option {
    color: #101828;
}

.advisor-open-field input:focus,
.advisor-open-field select:focus,
.advisor-open-field textarea:focus {
    border-color: #1849a9;
    box-shadow: 0 0 0 2px rgba(24, 73, 169, 0.12);
}

.advisor-open-field.is-invalid input,
.advisor-open-field.is-invalid select,
.advisor-open-field.is-invalid textarea,
.advisor-open-field.is-invalid .advisor-open-radio-group {
    border-color: #ef4444;
}

.advisor-open-field-row {
    display: grid;
    grid-template-columns: 245px 245px;
    gap: 10px;
    width: 100%;
    height: 77px;
}

.advisor-open-field-row .advisor-open-field {
    width: 245px;
}

.advisor-open-select-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
}

.advisor-open-select-wrap img {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    pointer-events: none;
}

.advisor-open-select-wrap select {
    padding-right: 42px;
}

.advisor-open-radio-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fafbff;
}

.advisor-open-radio-group__divider {
    width: 1px;
    height: 48px;
    background: #e3e8ef;
}

.advisor-open-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 48px;
    cursor: pointer;
}

.advisor-open-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.advisor-open-radio__control {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #98a2b3;
    border-radius: 50%;
    background: #fff;
}

.advisor-open-radio__label {
    color: #98a2b3;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}

.advisor-open-radio input:checked + .advisor-open-radio__control {
    border-color: #1849a9;
    background: radial-gradient(circle at center, #1849a9 0 4px, #fff 4.5px 100%);
}

.advisor-open-radio input:checked ~ .advisor-open-radio__label {
    color: #1849a9;
}

.advisor-open-radio input:focus-visible + .advisor-open-radio__control {
    box-shadow: 0 0 0 2px rgba(24, 73, 169, 0.25);
}

.advisor-open-consents {
    display: flex;
    flex-direction: column;
    flex: 0 0 62px;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    height: 62px;
}

.advisor-open-consent {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 16px;
    cursor: pointer;
}

.advisor-open-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.advisor-open-consent__box {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border-radius: 2.25px;
    background: #fff;
    border: 0.75px solid #e3e8ef;
    box-shadow: inset 0 0 0 0.375px #eff1f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
}

.advisor-open-consent input:checked + .advisor-open-consent__box {
    border: 0;
    box-shadow: none;
    background-color: #1849a9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none'%3E%3Cpath d='M3.75 7.23 5.89 9.75 11.25 4.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.advisor-open-consent input:focus-visible + .advisor-open-consent__box {
    box-shadow: 0 0 0 2px rgba(24, 73, 169, 0.25);
}

.advisor-open-consent__text {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    min-width: 0;
    white-space: nowrap;
}

.advisor-open-consent:nth-child(n + 2) .advisor-open-consent__text {
    white-space: normal;
}

.advisor-open-consent__text a {
    color: #1849a9;
    text-decoration: none;
}

.advisor-open-consent__text a:hover {
    text-decoration: underline;
}

.advisor-open-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 100%;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: #1849a9;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.advisor-open-form__submit:hover {
    background: #153f91;
}

.advisor-open-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.advisor-open-success {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.advisor-open-success.d-none,
.advisor-open-form.d-none {
    display: none !important;
}

.advisor-open-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.advisor-open-success h3 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    font-weight: 600;
}

.advisor-open-success p {
    margin: 0;
    max-width: 360px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Dar ekranda orantılı küçült, oranları koru — blok her zaman ortada */
@media (max-width: 1312px) {
    .advisor-open-page__inner,
    .advisor-open-layout {
        --advisor-scale: min(1, calc((100vw - 32px) / 1280));
        width: calc(1280px * var(--advisor-scale));
    }

    .advisor-open-layout {
        gap: calc(40px * var(--advisor-scale));
    }

    .advisor-open-hero {
        flex-basis: calc(690px * var(--advisor-scale));
        width: calc(690px * var(--advisor-scale));
        height: calc(806px * var(--advisor-scale));
    }

    .advisor-open-hero__panel {
        width: 100%;
        height: 100%;
    }

    .advisor-open-form-card {
        flex-basis: calc(550px * var(--advisor-scale));
        width: calc(550px * var(--advisor-scale));
        height: calc(806px * var(--advisor-scale));
        padding: calc(25px * var(--advisor-scale));
        gap: calc(20px * var(--advisor-scale));
    }

    .advisor-open-form {
        gap: calc(20px * var(--advisor-scale));
    }

    .advisor-open-form-card__head {
        flex-basis: calc(32px * var(--advisor-scale));
        height: calc(32px * var(--advisor-scale));
        padding-bottom: calc(15px * var(--advisor-scale));
    }

    .advisor-open-fields {
        flex-basis: calc(560px * var(--advisor-scale));
        height: calc(560px * var(--advisor-scale));
        gap: calc(10px * var(--advisor-scale));
    }

    .advisor-open-field,
    .advisor-open-field-row {
        height: calc(77px * var(--advisor-scale));
    }

    .advisor-open-field--message {
        height: calc(125px * var(--advisor-scale));
    }

    .advisor-open-field-row {
        grid-template-columns: calc(245px * var(--advisor-scale)) calc(245px * var(--advisor-scale));
        gap: calc(10px * var(--advisor-scale));
    }

    .advisor-open-field-row .advisor-open-field {
        width: calc(245px * var(--advisor-scale));
    }

    .advisor-open-field input,
    .advisor-open-field select,
    .advisor-open-radio-group {
        height: calc(48px * var(--advisor-scale));
        min-height: calc(48px * var(--advisor-scale));
    }

    .advisor-open-field--message textarea {
        height: calc(96px * var(--advisor-scale));
        min-height: calc(96px * var(--advisor-scale));
    }

    .advisor-open-consents {
        flex-basis: calc(62px * var(--advisor-scale));
        height: calc(62px * var(--advisor-scale));
    }

    .advisor-open-form__submit {
        flex-basis: calc(42px * var(--advisor-scale));
        height: calc(42px * var(--advisor-scale));
    }

    .advisor-open-field label,
    .advisor-open-field__legend {
        font-size: calc(16px * var(--advisor-scale));
    }

    .advisor-open-field input,
    .advisor-open-field select,
    .advisor-open-field textarea,
    .advisor-open-radio__label {
        font-size: calc(15px * var(--advisor-scale));
    }

    .advisor-open-consent__text {
        font-size: calc(12px * var(--advisor-scale));
        white-space: normal;
    }

    .advisor-open-form-card__head h2 {
        font-size: calc(16px * var(--advisor-scale));
    }

    .advisor-open-form__submit {
        font-size: calc(14px * var(--advisor-scale));
    }
}

@media (max-width: 900px) {
    .advisor-open-page {
        padding: 20px 0 48px;
    }

    .advisor-open-page__inner,
    .advisor-open-layout {
        width: min(690px, calc(100% - 32px));
        margin-left: auto;
        margin-right: auto;
    }

    .advisor-open-layout {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        --advisor-scale: min(1, calc((100vw - 32px) / 690));
    }

    .advisor-open-hero,
    .advisor-open-form-card {
        flex: 0 0 auto;
        width: calc(690px * var(--advisor-scale));
        max-width: 100%;
    }

    .advisor-open-hero {
        height: calc(806px * var(--advisor-scale));
    }

    .advisor-open-form-card {
        width: min(550px, 100%);
        height: auto;
        min-height: 0;
        padding: 25px;
        gap: 20px;
    }

    .advisor-open-form-card__head,
    .advisor-open-fields,
    .advisor-open-field,
    .advisor-open-field-row,
    .advisor-open-field--message,
    .advisor-open-consents {
        flex-basis: auto;
        height: auto;
    }

    .advisor-open-field-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .advisor-open-field-row .advisor-open-field {
        width: 100%;
    }

    .advisor-open-field input,
    .advisor-open-field select,
    .advisor-open-radio-group {
        height: 48px;
        min-height: 48px;
    }

    .advisor-open-field--message textarea {
        height: 96px;
        min-height: 96px;
    }

    .advisor-open-form__submit {
        height: 42px;
    }

    .advisor-open-field label,
    .advisor-open-field__legend,
    .advisor-open-form-card__head h2 {
        font-size: 16px;
    }

    .advisor-open-field input,
    .advisor-open-field select,
    .advisor-open-field textarea,
    .advisor-open-radio__label {
        font-size: 15px;
    }

    .advisor-open-consent__text {
        font-size: 12px;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .advisor-open-field-row {
        grid-template-columns: 1fr;
    }

    .advisor-open-form-card {
        padding: 18px;
    }
}
