/* 全体のスタイル */


/* フォーム全体のスタイル */
.mulchiForm {
    background: #ffffff !important;
    border-radius: 10px !important;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; */
    overflow: hidden !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Bootstrapの干渉を防ぐためのリセット */
.mulchiForm * {
    box-sizing: border-box !important;
}

.mulchiForm label {
    text-align: left !important;
}

.mulchiForm .btn {
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
}

/* プログレスバー */
.mulchiForm .progress-container {
    padding: 15px 25px !important;
    background: #ffffff !important;
    border-top: 1px solid #799aa3 !important;
    margin-top: 20px !important;
}

.mulchiForm .progress-bar {
    display: flex !important;
    background: #f0f0f0 !important;
    height: 6px !important;
    border-radius: 3px !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    background-color: #f0f0f0 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    color: transparent !important;
    text-align: left !important;
    white-space: normal !important;
    vertical-align: baseline !important;
    font-size: inherit !important;
    line-height: inherit !important;
    transition: none !important;
}

.mulchiForm .progress-step {
    flex: 1 !important;
    height: 100% !important;
    background: #77b800 !important;
    background-color: #77b800 !important;
    transition: all 0.3s ease !important;
    margin-right: 2px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    border: none !important;
    width: auto !important;
    min-width: 0 !important;
}

.mulchiForm .progress-step:last-child {
    margin-right: 0 !important;
}

.mulchiForm .progress-step.active {
    background: #fab549 !important;
    background-color: #fab549 !important;
}

.mulchiForm .progress-text {
    text-align: center !important;
    color: #45546c !important;
    font-weight: bold !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* フォームページ */
.form-page {
    padding: 25px;
    display: none;
}

.form-page.active {
    display: block;
}

.form-page h2 {
    color: #45546c;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

/* フォームページ内のラベルを左寄せに統一 */
.form-page label {
    text-align: left !important;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #182b38;
    font-size: 14px;
    text-align: left !important;
}

/* 2列レイアウト */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #77b800;
    box-shadow: 0 0 0 3px rgba(119, 184, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #b82e12;
}

.error-message {
    color: #b82e12;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* 必須マーク */
.required {
    color: #b82e12;
    margin-left: 4px;
}

/* ボタン */
.button-group {
    display: flex !important;
    justify-content: center !important;
    margin-top: 30px !important;
    gap: 12px !important;
}

.button-group .btn {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
    background-color: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    user-select: none !important;
    line-height: 1.5 !important;
    min-width: auto !important;
}

.button-group .btn-prev {
    background: #799aa3 !important;
    color: white !important;
}

.button-group .btn-prev:hover {
    background: #45546c !important;
    color: white !important;
}

.button-group .btn-next {
    background: #77b800 !important;
    color: white !important;
}

.button-group .btn-next:hover {
    background: #5a8a00 !important;
    color: white !important;
}

.button-group .btn-submit {
    background: #fab549 !important;
    color: white !important;
}

.button-group .btn-submit:hover {
    background: #e6a040 !important;
    color: white !important;
}

.button-group .btn:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
    color: #6c757d !important;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 10px !important;
    }

    .form-page {
        padding: 15px !important;
    }

    .button-group {
        flex-direction: column !important;
        align-items: center !important;
    }

    .button-group .btn {
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: 300px !important;
    }
}

/* アニメーション */
.form-page {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* 完了メッセージ */
.completion-message {
    text-align: center;
    padding: 25px;
}

.completion-message h2 {
    color: #77b800;
    margin-bottom: 15px;
    font-size: 18px;
}

.completion-message p {
    color: #45546c;
    font-size: 14px;
}
