/* 出生ベアアンケートフォーム用スタイル */

.birth-bear-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
}

/* ステップセクション */
.step-section {
    animation: fadeIn 0.4s ease-in-out;
}

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

/* ===== Step 1: 認証画面 ===== */
.auth-info-box {
    background: #f0f8ff;
    border-left: 4px solid #4a90e2;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.auth-info-box p {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.auth-info-box small {
    color: #666;
    font-size: 13px;
}

.auth-form {
    max-width: 500px;
    margin: 40px auto;
}

.form-group-auth {
    margin-bottom: 30px;
}

.auth-label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.serial-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    text-align: center;
    border: 3px solid #4a90e2;
    border-radius: 8px;
    font-family: monospace;
    letter-spacing: 2px;
    transition: all 0.3s;
    background: #fafafa;
}

.serial-input:focus {
    outline: none;
    border-color: #357abd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.btn-auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.error-message {
    margin-top: 20px;
    padding: 15px 20px;
    background: #fff3f3;
    border-left: 4px solid #ff6b6b;
    color: #d63031;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
}

/* ===== Step 3: 完了画面 ===== */
.complete-container {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(55, 178, 77, 0.3);
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.complete-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.complete-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.complete-note {
    font-size: 14px;
    color: #888;
}

/* ベアフォームアイテム */
.bear-form-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px dashed #e0e0e0;
}

.bear-form-item:last-child {
    border-bottom: none;
}

/* ベアヘッダー（シリアル番号と削除ボタン） */
.bear-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border-radius: 8px;
    border-left: 5px solid #4a90e2;
}

.serial-number {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
    letter-spacing: 0.5px;
}

.remove-bear-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.remove-bear-button:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.form-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0b8b8;
}

.form-notice {
    background-color: #fff9e6;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

/* セクション */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #444;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d0d0d0;
}

.subsection-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

/* フォームグループ */
.form-group {
    margin-bottom: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

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

/* 入力行 */
.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.input-label {
    min-width: 120px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* 入力フィールド */
.form-input,
.form-input-medium {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-input-medium:focus,
.form-input-small:focus {
    outline: none;
    border-color: #f0b8b8;
    box-shadow: 0 0 0 3px rgba(240, 184, 184, 0.1);
}

.form-input-medium {
    max-width: 150px;
}

.form-input-small {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    margin: 0 5px;
}

/* 日付・時刻入力 */
.date-inputs,
.time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-inputs span,
.time-inputs span {
    color: #555;
    font-size: 14px;
}

/* 性別選択 */
.gender-options {
    display: flex;
    gap: 30px;
    padding: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* チェックボックス */
.checkbox-row {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #f0b8b8;
    box-shadow: 0 0 0 3px rgba(240, 184, 184, 0.1);
}

/* 注意書き */
.form-note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    line-height: 1.6;
}

.form-note-inline {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 26px;
    line-height: 1.5;
}

/* 追加注文セクション */
.add-bear-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.add-bear-button {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.add-bear-button:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.5);
    transform: translateY(-2px);
}

.add-bear-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* 送信ボタン */
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8e8e8;
}

.submit-button {
    background: linear-gradient(135deg, #f0b8b8 0%, #e89898 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 60px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(240, 184, 184, 0.4);
}

.submit-button:hover {
    background: linear-gradient(135deg, #e89898 0%, #d88888 100%);
    box-shadow: 0 6px 16px rgba(240, 184, 184, 0.6);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(240, 184, 184, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .birth-bear-form-container {
        padding: 10px;
        margin: 20px auto;
    }

    .form-wrapper {
        padding: 20px;
    }

    .form-title {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .form-group {
        padding: 15px;
    }

    .input-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-label {
        margin-bottom: 5px;
    }

    .form-input,
    .form-input-medium {
        width: 100%;
        max-width: 100%;
    }

    .gender-options {
        flex-direction: column;
        gap: 15px;
    }

    .date-inputs,
    .time-inputs {
        flex-wrap: wrap;
    }

    .submit-button {
        width: 100%;
        padding: 15px 30px;
    }

    /* ベアヘッダーのレスポンシブ */
    .bear-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .serial-number {
        font-size: 16px;
    }

    .remove-bear-button {
        width: 100%;
    }

    .add-bear-section {
        padding: 20px;
    }

    .add-bear-button {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 15px;
    }

    .form-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 17px;
    }

    .form-input-small {
        width: 60px;
    }

    /* 認証画面のモバイル対応 */
    .serial-input {
        font-size: 16px;
        padding: 12px 15px;
        letter-spacing: 1px;
    }

    .btn-auth-submit {
        font-size: 16px;
        padding: 14px 30px;
    }

    .complete-title {
        font-size: 24px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 40px;
        line-height: 60px;
    }
}
