/* ==========================================
   CTA FORM SECTION
   ========================================== */

.cta-section {
    max-width: 1344px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(-58.4deg, #ffeee0 0%, #fbe5ff 50%, #f1ebff 75%);
    border-radius: 32px;
    min-height: 680px;
    height: 680px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 553px;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.cta-left h2 {
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--dark-text);
    max-width: 618px;
}

.cta-br-tab {
    display: none;
}

.cta-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 482px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.cta-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.cta-section .ihb__label {
    padding-left: 32px;
}

.cta-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cta-form-card h3 {
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--dark-text);
    text-align: center;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field {
    background: var(--grey-bg);
    border-radius: 8px;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-75);
    line-height: 16px;
    letter-spacing: -0.03em;
}

.form-field input,
.form-field textarea {
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-text);
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    width: 100%;
    line-height: 23px;
    letter-spacing: -0.03em;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--grey-text);
    opacity: 1;
}

.form-field textarea {
    min-height: 46px;
    overflow: hidden;
}

.form-field.error {
    background: #fff0f2;
    transition: background 0.2s;
}

.form-field.error label {
    color: #e03060;
}

.field-error-msg {
    font-size: 12px;
    font-weight: 500;
    color: #e03060;
    letter-spacing: -0.36px;
    margin: -8px 0 0;
}

.form-privacy {
    margin: 24px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    line-height: 18px;
    letter-spacing: -0.03em;
}

.form-privacy a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cta-section .btn--accent {
    align-self: center;
    width: 489px;
    height: 64px;
    padding: 0 32px;
    font-size: 18px;
    background: var(--purple);
}

.cta-section .btn--accent:hover,
.cta-section .ihb.is-on {
    background: var(--purple);
}

.cta-section .ihb.is-on {
    border-color: var(--purple);
}

.cta-section .ihb__alt {
    color: var(--purple);
}

.cta-section .ihb.btn--accent::before {
    left: 160px;
    width: 12px;
    height: 12px;
    margin-left: -8px;
}

.cta-section .ihb.is-on.btn--accent::before {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.8);
}

@media (hover: hover) and (min-width: 1345px) {
    .cta-section .ihb:hover {
        border-color: var(--purple);
        background: var(--purple);
    }

    .cta-section .ihb:hover.btn--accent::before {
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

#formSuccessPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#formSuccessPopup .fp-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 30px;
    width: 420px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

#formSuccessPopup .fp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: #f5f6fa;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    color: #737580;
    display: flex;
    align-items: center;
    justify-content: center;
}

#formSuccessPopup .fp-close:hover {
    background: #e8e8e8;
}

#formSuccessPopup .fp-title {
    font-size: 24px;
    font-weight: 800;
    color: #262626;
    letter-spacing: -0.72px;
    text-align: center;
    margin: 0;
}

#formSuccessPopup .fp-text {
    font-size: 16px;
    font-weight: 500;
    color: #737580;
    letter-spacing: -0.48px;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

#formSuccessPopup .fp-img {
    width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 1344px) {
    .cta-section {
        margin-bottom: 72px;
        padding-bottom: 0;
    }

    .cta-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 32px 12px;
        gap: 32px;
        min-height: 0;
        height: auto;
    }

    .cta-left h2 {
        font-size: 52px;
        text-align: center;
        max-width: none;
    }

    .cta-form-card {
        padding: 32px 24px;
    }

    .cta-br-pc {
        display: none;
    }

    .cta-br-tab {
        display: inline;
    }

    .cta-photo {
        display: none;
    }

    .cta-form {
        height: auto;
        max-width: 720px;
        margin: 0 auto;
    }

    .form-field textarea {
        min-height: 23px;
    }

    .form-privacy {
        margin: 32px 0 12px;
    }

    .form-privacy br {
        display: none;
    }

    .cta-section .btn--accent {
        width: 100%;
        align-self: stretch;
    }

    .cta-section .ihb.btn--accent::before {
        left: calc(50% - 96px);
        width: 10px;
        height: 10px;
        margin-left: 5px;
    }
}

@media (max-width: 650px) {
    .cta-section {
        padding-inline: 8px 10px;
        margin-bottom: 0;
    }

    .cta-card {
        padding: 32px 8px;
    }

    .cta-left h2 {
        font-size: 32px;
    }

    .cta-br-pc {
        display: inline;
    }

    .cta-br-tab {
        display: none;
    }

    .cta-form-card {
        padding: 24px 15px;
        gap: 24px;
    }

    .cta-form-card h3 {
        font-size: 20px;
    }

    .form-field {
        padding: 14px 16px;
        gap: 10px;
    }

    .form-field label {
        font-size: 12px;
        line-height: 14px;
    }

    .form-field input,
    .form-field textarea {
        font-size: 16px;
        line-height: 20px;
    }

    .form-field textarea {
        min-height: 60px;
    }

    .form-privacy {
        margin: 10px 8px 16px;
        font-size: 12px;
        line-height: 15px;
    }

    .form-privacy br {
        display: inline;
    }

    .cta-section .btn--accent {
        height: 50px;
        font-size: 16px;
    }

    .cta-section .ihb.btn--accent::before {
        left: calc(50% - 76px);
        width: 8px;
        height: 8px;
    }

    .cta-section .ihb__label {
        padding-left: 30px;
        font-size: 14px;
    }
}
