/* ========================================
   お問い合わせページ専用スタイル
   ======================================== */

/* 導入文 */
.contact-intro {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-intro p {
    margin-bottom: 16px;
    line-height: 2;
}

/* フォーム */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label .required {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
    background-color: #c54b4b;
    color: #fff;
    border-radius: 2px;
    font-weight: 400;
}

.form-label .optional {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
    background-color: var(--color-gray);
    color: var(--color-text-light);
    border-radius: 2px;
    font-weight: 400;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

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

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

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

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

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* チェックボックス */
.checkbox-group {
    margin-top: 32px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-item span {
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-item a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.form-submit .btn {
    min-width: 280px;
}

.form-submit .btn:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 1;
}

.form-submit .btn:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

/* フォームノート */
.form-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* その他の連絡手段 */
.other-contact {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.other-contact-box {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.other-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.other-contact p {
    margin-bottom: 8px;
}

.other-contact .tel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.other-contact .note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* エラー表示 */
.errorBox {
    background-color: #fdf2f2;
    border: 1px solid #c54b4b;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.errorBox p {
    color: #c54b4b;
    font-size: 0.95rem;
    margin: 0;
}

.errorTxt {
    color: #c54b4b;
    font-size: 0.85rem;
    margin-top: 8px;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select,
.form-group.error .radio-group,
.checkbox-group.error {
    border-color: #c54b4b;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 60px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: background-color 0.3s;
}

.step-item.active .step-number {
    background-color: var(--color-primary);
    color: #fff;
}

.step-item.done .step-number {
    background-color: var(--color-primary);
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    color: #999;
}

.step-item.active .step-label,
.step-item.done .step-label {
    color: var(--color-primary);
    font-weight: 500;
}

/* ステップ間の接続線 */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background-color: #ddd;
}

.step-item.done:not(:last-child)::after {
    background-color: var(--color-primary);
}

/* 確認画面 */
.confirm-table {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.confirm-table th {
    width: 35%;
    font-weight: 500;
    color: var(--color-primary);
    background-color: var(--color-gray);
    font-size: 0.95rem;
}

.confirm-table td {
    white-space: pre-wrap;
    word-break: break-word;
}

.form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #999;
    color: #666;
    padding: 16px 48px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #f4f4f0;
    border-color: #666;
    color: #333;
    opacity: 1;
}

/* 完了画面 */
.complete-message {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.complete-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

.complete-message h2 {
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.complete-message p {
    line-height: 2;
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.complete-action {
    margin-top: 48px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

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

    .step-indicator {
        margin-bottom: 40px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-item:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        border-bottom: none;
        padding-bottom: 8px;
    }

    .confirm-table td {
        padding-top: 8px;
    }

    .form-buttons {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .form-buttons .btn,
    .form-buttons .btn-back {
        width: 100%;
        text-align: center;
    }
}
