/**
 * 求人応募フォーム Ajax CSS
 * 入力→確認→送信の3段階フロー用スタイル
 */

/* 確認画面のスタイル */
.confirm-step {
    max-width: 700px;
    margin: 0 auto;
}

.confirm-step h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.confirm-content {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirm-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.confirm-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.confirm-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    padding-top: 0.25rem;
}

.confirm-row span {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirm-actions .c-btn {
    min-width: 150px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 成功画面のスタイル */
.success-step {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .c-btn {
    min-width: 200px;
    padding: 1rem 2rem;
}

/* フォームステップの基本スタイル */
.form-step {
    display: block;
}

/* ボタンのスタイル調整 */
.job-application-form .c-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.job-application-form .c-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.job-application-form .c-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ローディング状態 */
.job-application-form.is-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.job-application-form.is-submitting .c-btn {
    background-color: var(--color_text_light, #ccc);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .confirm-step h3 {
        font-size: 1.1rem;
    }

    .confirm-content {
        padding: 1.5rem 1rem;
    }

    .confirm-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .confirm-row label {
        padding-top: 0;
        font-size: 0.9rem;
    }

    .confirm-row span {
        font-size: 0.9rem;
    }

    .confirm-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .confirm-actions .c-btn {
        width: 100%;
        min-width: auto;
    }

    .success-actions .c-btn {
        width: 100%;
        min-width: auto;
    }
}

/* アニメーション効果 */
.confirm-step,
.success-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フォーカス状態の強化 */
.confirm-actions .c-btn:focus-visible,
.success-actions .c-btn:focus-visible {
    outline: 2px solid var(--color_main, #0073aa);
    outline-offset: 2px;
}

