/* ================================
   フォーム専用スタイル
================================ */

.form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 50px;
}

.form-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.form-note {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* フォーム本体 */
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* フォームグループ */
.form-group {
    margin-bottom: 30px;
}

.form-group.required .form-label::after {
    /* 削除：必須バッジで代用 */
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-note-inline {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 5px;
}

/* バッジ */
.badge-required,
.badge-optional {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-required {
    background: #FF6B6B;
    color: var(--white);
}

.badge-optional {
    background: #95A5A6;
    color: var(--white);
}

/* 入力フィールド */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 126, 207, 0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: #BDBDBD;
}

/* ラジオボタン */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(10, 126, 207, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #BDBDBD;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-text {
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

/* チェックボックス */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #BDBDBD;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* プライバシーポリシーチェック */
.privacy-check {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* 条件付きフィールド */
.conditional-fields {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #E0E0E0;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    min-width: 250px;
    font-size: 1.1rem;
}

.btn-submit i {
    margin-right: 8px;
}

/* 送信完了メッセージ */
.success-message {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #27AE60;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-gray);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }

    .form-intro p {
        font-size: 1rem;
    }

    .radio-label,
    .checkbox-label {
        font-size: 0.9rem;
    }

    .radio-text,
    .checkbox-text {
        font-size: 0.9rem;
    }

    .btn-submit {
        min-width: 100%;
    }

    .success-message {
        padding: 40px 20px;
    }

    .success-message h3 {
        font-size: 1.5rem;
    }

    .success-message p {
        font-size: 1rem;
    }
}
