/**
 * Survey / 資料請求フォーム 共通スタイル
 *
 * 使用テンプレート:
 *   - page-survey.php (資料請求フォーム / 11ページ)
 *   - page-survey2.php (資料請求フォーム2 / 4ページ)
 *   - page-snstrendreport.php (SNS TREND REPORT / 1ページ)
 *   - template/page-survey.php (互換用 / 2ページ)
 *
 * デザイン基準: contact.css (CF7フォーム) と統一
 */

/* ==========================================================================
   Layout
   ========================================================================== */
.survey-form__columns {
    display: flex;
    gap: 3rem;
}

.survey-form__sidebar {
    flex: 1;
    min-width: 0;
}

.survey-form__main {
    flex: 3;
    min-width: 0;
}

.survey-form__lead {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.survey-form__thumbnail {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.survey-form__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Form Card (survey2用)
   ========================================================================== */
.survey-form__card {
    background: var(--color-white, #fff);
    padding: 5rem 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.04);
}

.survey-form__card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.survey-form__card-desc {
    font-size: 1.2rem;
    color: var(--color-gray-dark, #666);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Form Elements — contact.css と統一
   ========================================================================== */

/* ラベル */
.survey-form__group {
    margin-bottom: 2rem;
}

.survey-form__label {
    display: block;
    margin-bottom: 0.6rem;
}

.survey-form__label-text {
    display: inline;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 必須バッジ: 赤文字・赤枠 (contact.css と統一) */
.survey-form__required {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border: 1px solid #e74c3c;
    border-radius: 0.2rem;
}

/* テキスト入力 (contact.css と統一) */
.survey-form__input {
    width: 100%;
    padding: 1.5rem 1.5rem;
    font-size: 1.3rem;
    border: 1px solid #bbb;
    border-radius: 0.5rem;
    background: var(--color-white, #fff);
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.survey-form__input:focus {
    outline: none;
    border-color: var(--color-primary, #ee8a00);
}

/* ==========================================================================
   Checkbox — contact.css と統一
   ========================================================================== */
.survey-form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

.survey-form__checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--color-primary, #ee8a00);
}

.survey-form__checkbox-text {
    font-size: 1.2rem;
    color: var(--color-gray-dark, #666);
}

.survey-form__checkbox-text a {
    color: var(--color-gray-dark, #666);
    text-decoration: underline;
    font-weight: 600;
}

.survey-form__checkbox-text a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Submit — .btn--outline と統一
   ========================================================================== */
.survey-form__submit {
    text-align: center;
    position: relative;
    margin-top: 1rem;
}

.survey-form__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    z-index: 1;
}

.survey-form__overlay p {
    color: var(--color-gray-dark, #666);
    font-size: 1.1rem;
}

.survey-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid #231815;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.survey-form__btn:hover {
    background: #231815;
    color: #fff;
}

.survey-form__btn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: stroke 0.3s;
}

.survey-form__btn:hover svg line,
.survey-form__btn:hover svg polyline {
    stroke: #fff;
}

/* ==========================================================================
   Complete
   ========================================================================== */
.survey-form__complete {
    text-align: center;
    padding: 3rem 1rem;
}

.survey-form__complete-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.survey-form__complete-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-gray-dark, #666);
}

/* ==========================================================================
   survey2: Two-column with slider
   ========================================================================== */
.survey-form__two-col {
    display: flex;
    gap: 3rem;
}

.survey-form__col-left {
    width: 40%;
    min-width: 0;
}

.survey-form__col-right {
    width: 60%;
    min-width: 0;
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.survey-form__page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.survey-form__slider {
    margin-bottom: 2rem;
}

.survey-form__slider .swiper {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.04);
}

.survey-form__slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.survey-form__slider .swiper-button-next::after,
.survey-form__slider .swiper-button-prev::after {
    color: var(--color-primary, #ee8a00);
    font-size: 1.25rem;
}

.survey-form__slider .swiper-pagination-bullet-active {
    background: var(--color-primary, #ee8a00);
}

/* ==========================================================================
   SP
   ========================================================================== */
@media screen and (max-width: 768px) {
    .survey-form__columns,
    .survey-form__two-col {
        flex-direction: column;
        gap: 1.5rem;
    }

    .survey-form__col-left,
    .survey-form__col-right {
        width: 100%;
        position: static;
    }

    .survey-form__card {
        padding: 3rem 2rem;
        border-radius: 1rem;
        box-shadow: none;
    }

    .survey-form__lead {
        font-size: 1.2rem;
        text-align: left;
    }

    .survey-form__input {
        max-width: 100%;
        font-size: 1.6rem;
    }
}
