/* イベント申し込みフォームのスタイル */

/* フォームコンテナ */
.event-form-container {
    width: clamp(48rem, 90%, 68.75rem);
}

/* 残り定員表示 */
.remaining-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

/* フォームセクション */
.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

/* フォームテーブル */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.form-table th {
    padding: 15px;
    text-align: left;
    width: 200px;
    font-size: 14px;
}

.form-table td {
    padding: 15px;
}

.form-table input,
.form-table select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* ラジオボタンのスタイル */
.form-table .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.form-table .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    min-width: 80px;
}

.form-table .radio-option:hover {
    border-color: #007cba;
    background-color: #f0f6fc;
}

.form-table .radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.form-table .radio-option.checked {
    border-color: #007cba;
    background-color: #e7f3ff;
    color: #0066cc;
    font-weight: 600;
}

.form-table .radio-option label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    user-select: none;
}

.form-table input:focus,
.form-table select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* 必須マーク */
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* 参加者セクション */
.participant-section {
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,124,186,.5);
}

.participant-section:hover {

    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;

}

.participant-title {
    font-size: 18px;
    font-weight: 700;

    margin: 0;
}

.remove-participant {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-participant:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.remove-participant:active {
    transform: translateY(0);
}

/* 参加者追加ボタン */
.add-participant-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.add-participant-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.add-participant-btn:active {
    transform: translateY(0);
}
/*
.add-participant-btn:before {
    content: "＋ ";
    font-weight: bold;
    margin-right: 5px;
}
*/
/* 確認ボタン */
.confirm-button {
    background: rgba(45,72,2,1) !important;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
    text-transform: none;
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
}

/* 参加者数表示 */
.participant-count-display {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0066cc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* 確認画面のスタイル */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.confirm-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #dee2e6;
    width: 180px;
    font-weight: 600;
    color: #495057;
}

.confirm-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.submit-button {
    background: rgba(45,72,2,1) !important;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
}

.back-button {
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .event-form-container {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .form-table th,
    .confirm-table th {
        width: 100% !important;
        display: block !important;
        text-align: left;
    }
    
    .form-table td,
    .confirm-table td {
        width: 100% !important;
        display: block !important;
    }

    .participant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .remove-participant {
        align-self: flex-end;
    }
    
    .add-participant-btn,
    .confirm-button {
        width: 100%;
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .radio-option {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .confirm-table th {
        width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .form-table,
    .confirm-table {
        font-size: 14px;
    }
        
    .participant-section {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
}


/* アニメーション効果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.participant-section {
    animation: slideIn 0.3s ease;
}

/* フォーカス時のアクセシビリティ向上 */
.add-participant-btn:focus,
.confirm-button:focus,
.submit-button:focus,
.back-button:focus,
.remove-participant:focus {
    outline: 3px solid rgba(0, 124, 186, 0.5);
    outline-offset: 2px;
}

/* エラー状態のスタイル */
.form-table input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}
