/* 受講申し込みフロー用スタイル */

/* ステップインジケーター */
.apply-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-sunrise);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.4);
}

.step.completed .step-number {
    background: #10b981;
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}

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

.step-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #10b981;
}

/* 申込セクション */
.apply-section {
    padding: 4rem 0;
}

.apply-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* 申込情報ボックス */
.apply-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.apply-info-box p {
    margin: 0.3rem 0;
    color: var(--text-primary);
}

/* フォームセクション */
.apply-form-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--soft-gray);
    padding: 3rem;
    border-radius: 10px;
}

.apply-form .form-group {
    margin-bottom: 1.5rem;
}

.apply-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="date"],
.apply-form select,
.apply-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--sakura-pink);
    box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.2);
}

.apply-form small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

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

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.radio-label:hover {
    border-color: var(--sakura-pink);
    background: rgba(255, 183, 197, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--sakura-pink);
}

.radio-label input[type="radio"]:checked + .radio-custom + span {
    font-weight: 500;
}

.radio-label:has(input:checked) {
    border-color: var(--sakura-pink);
    background: rgba(255, 183, 197, 0.1);
}

/* 受講者フィールドセット */
.person-fieldset {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    background: #fff;
}

.person-fieldset legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-remove-person {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-remove-person:hover {
    background: #ef4444;
    color: #fff;
}

/* 受講者追加エリア */
.add-person-area {
    text-align: center;
    margin: 1.5rem 0;
}

.btn-add-person {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: #fff;
    color: var(--sakura-pink);
    border: 2px dashed var(--sakura-pink);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn-add-person:hover {
    background: var(--sakura-pink);
    color: #fff;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-add-person i {
    font-size: 0.9rem;
}

/* アラート */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-line;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* 完了ページ */
.complete-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.complete-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: completeScale 0.5s ease;
}

@keyframes completeScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.complete-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.complete-message {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.complete-note {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.complete-note i {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.complete-note p {
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.complete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* フォーム行 */
.apply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.apply-form .form-row .form-group {
    margin-bottom: 1.5rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .apply-steps {
        gap: 0;
    }

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

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .apply-form-section {
        padding: 1.5rem;
    }

    .person-fieldset {
        padding: 1.2rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .apply-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .complete-actions {
        flex-direction: column;
        align-items: center;
    }
}
