/* contact/index.php用のスタイル */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* contact-intro */
.contact-intro-section {
    padding: 60px 20px 40px;
    text-align: center;
}

.contact-intro-text {
    font-size: 14px;
    line-height: 2;
    text-align: left;
}

@media (min-width: 992px) {
    .contact-intro-section {
        padding: 80px 40px 60px;
    }

    .contact-intro-text {
        font-size: 16px;
    }
}

/* Form Styles */
.contact-form-section {
    padding-bottom: 100px;
}

.contact-form-card {
    background-color: #fff;
    /* recruitと同じような外枠スタイルがあれば適用 */
}

/* Recruitのリストスタイルをベースにフォーム用に調整 */
.form-list {
    width: 100%;
    margin: 0 auto 40px;
    border-top: 1px solid #e0e0e0;
    color: #333;
    font-family: var(--font-secondary);
}

.form-row {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.form-row dt {
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0 15px 10px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-row dd {
    margin: 0;
    padding: 5px 15px 15px;
    position: relative;
}

/* フォーム要素の基本スタイル */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Figmaでは角丸が少しある */
    font-size: 16px;
    font-family: inherit;
    background-color: #fff;
    appearance: none;
    /* ブラウザのデフォルトスタイルをリセット */
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-control::placeholder {
    color: #cecece;
}

.form-control.error {
    background-color: #fff2f2;
    border-color: #d32f2f;
}

/* 注釈テキスト */
.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
    font-weight: normal;
    /* 左カラム内でも太字にしない */
    display: block;
    font-weight: bold;
    width: 100%;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 必須バッジ */
.badge-required {
    display: inline-block;
    /* 紺色（Figma参照） */
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    vertical-align: middle;
    position: relative;
    border-radius: 5px;
    border: 1px solid var(--Neutral-10, #486284);
    background: var(--blue-gradient, linear-gradient(180deg, #1B1F83 29.81%, #06071D 100%));
}

/* 左側の緑ライン（Recruitから継承） */
.form-row dt {
    position: relative;
}


/* PCレイアウト */
@media (min-width: 768px) {
    .form-list {
        border: 1px solid #e0e0e0;
    }

    .form-row {
        display: flex;
        align-items: stretch;
        /* 高さを揃える */
        padding: 0;
    }

    .form-row dt {
        flex: 0 0 300px;
        /* 左側の幅 */
        background-color: #fff;
        /* 白背景 */
        padding: 40px 40px 40px 85px;
        align-content: flex-start;
        /* 複数行の場合の中央揃え */
        gap: 5px;
    }

    .form-note {
        margin-top: 0;
    }

    .badge-required {
        width: 50px;
        position: absolute;
        left: 20px;
        top: 38px;
        font-size: 1rem;
        text-align: center;
    }

    .form-row dd::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 10px;
        bottom: 10px;
        width: 3px;
        background-color: #bce272;
        /* アクセントカラー */
    }

    .form-row dd {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        flex: 1;
        padding: 30px 40px;
    }
}

/* プライバシーポリシーチェック */
.privacy-check {
    text-align: center;
    margin: 40px 0 60px;
    font-family: var(--font-secondary);
}

.privacy-link-text {
    margin-bottom: 20px;
    font-size: 14px;
}

.privacy-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.privacy-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #000;
}

/* 送信ボタンエリア */
.form-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;

    &>button {
        max-width: 350px;
    }
}

/* 確認画面用スタイル */
.confirm-value {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

.complete-message {
    text-align: center;
    padding: 60px 20px;
}

.complete-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.complete-text {
    font-size: 16px;
    line-height: 1.8;
}

/* 修正ボタン */
.btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}