/* フォームスタイル */

/* アラート */
.alert {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert ul {
    margin: 10px 0 0 20px;
}

.alert-error {
    background-color: #ffebee;
    border-left-color: #d32f2f;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    border-left-color: #388e3c;
    color: #2e7d32;
}

.form-container {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* セミナー情報ボックス */
.seminar-info-box {
    background-color: #f0f8ff;
    border: 2px solid #003d7a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.seminar-info-box h2 {
    color: #003d7a;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #003d7a;
    padding-bottom: 10px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.info-table th {
    background-color: #e8f4ff;
    font-weight: bold;
    width: 120px;
}

/* フォームセクション */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #003d7a;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003d7a;
}

.section-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #ff0000;
    font-size: 14px;
}

.form-group label.required::after {
    content: " *";
    color: #ff0000;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

/* 必須項目の赤枠 */
.form-group input[required],
.form-group select[required],
.form-group textarea[required] {
    border-color: #dc3545;
    border-width: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003d7a;
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

/* 必須フィールドのフォーカス時も赤枠を維持 */
.form-group input[required]:focus,
.form-group select[required]:focus,
.form-group textarea[required]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* 参加者グループ */
.participant-group {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.participant-group h4 {
    color: #003d7a;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
}

/* フォームアクション */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #ff6600;
    color: #fff;
}

.btn-primary:hover {
    background-color: #ff8533;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

/* エラーメッセージ */
.flash-message ul {
    margin-top: 10px;
    margin-left: 20px;
}

.flash-message li {
    margin-bottom: 5px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .form-container {
        padding: 20px 10px;
    }
    
    .seminar-info-box {
        padding: 15px;
    }
    
    .info-table th {
        width: 100px;
        font-size: 14px;
    }
    
    .info-table th,
    .info-table td {
        padding: 8px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
    
    .participant-group {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
