@charset "UTF-8";
/* 女性育毛剤 LP 用 離脱防止ポップアップ
   aga-hikaku-plaza.com の popup.css を 1:1 で踏襲し、配色のみ #ff7978 系へ変更 */

/* === 主色：#ff7978（aga の #023B6F navy を置換） === */
/* === CTA 色：#64C9CC teal（aga の #f59e0b amber を置換） === */

.modal-leave {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #00000059;
    display: none;
}

.modal-leave__body {
    position: absolute;
    min-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-close {
    cursor: pointer;
    position: absolute;
    top: -25px;
    right: -25px;
}

.icon-close img {
  height: 35px;
  width: 35px;
}

@media screen and (max-width: 768px) {
    .modal-leave__body {
        min-width: 365px;
        max-width: 90%;
    }

    .icon-close {
        top: -10px;
        right: -10px;
    }
}

.survey-box {
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.survey-header {
    background: #ff7978;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.survey-content {
    padding: 30px 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    position: relative;
}

.progress-step.current::before,
.progress-step.completed::before,
.progress-step.pending::before {
    content: "";
    position: absolute;
    bottom: 100%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.progress-step.current::before {
    background: #ff7978;
    color: white;
}

.progress-step.completed::before,
.progress-step.pending::before {
    background: #e2e8f0;
    color: #a0aec0;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
}

.question-title {
    color: #4A5A72;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
    color: #4A5A72;
    white-space: nowrap;
}

.option-btn:hover {
    border-color: #ff7978;
    background: #fff5f5;
}

.option-btn.selected {
    background: #ff7978;
    color: white;
    border-color: #ff7978;
}

.survey-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.back-btn {
    background: #e2e8f0;
    color: #4A5A72;
}

.back-btn:hover {
    background: #cbd5e0;
}

.next-btn {
    background: #ff7978;
    color: white;
}

.next-btn:hover {
    background: #ff7978;
}

.next-btn:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
}

.survey-result {
    display: none;
    text-align: center;
    padding: 15px;
}

.survey-result img {
    display: block;
    width: 100%;
    max-width: 258px;
    margin: 0 auto;
}

.survey-result .content {
    font-family: "Meiryo", sans-serif;
    margin: 15px auto;
    font-size: 14px;
    max-width: 350px;
    text-align: left;
}

.survey-result .button-jump {
    width: 75%;
    background-color: #64C9CC;
    color: #fff;
    font-size: 24px;
    padding: 12px 0;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 767px) {
    .survey-content {
        padding: 30px 20px 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .survey-result .button-jump {
      width: 73%;
      height: 2.5em;
      font-size: 20px;
    }

    .survey-result .content {
        max-width: 100%;
    }

    .survey-result img {
        width: 100%;
        max-width: 300px;
    }
}
