/* mulchiForm_sm - 独立スタイル */

.mulchiForm_sm {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mulchiForm_sm * {
    box-sizing: border-box;
}

/* Page */
.msm-page {
    display: none;
    padding: 24px;
}
.msm-page.active {
    display: block;
}

/* Title */
.msm-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #182b38;
    margin: 0 0 20px;
    text-align: center;
}

/* Field */
.msm-field {
    margin-bottom: 14px;
}
.msm-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
}
.msm-req {
    color: #e74c3c;
    margin-left: 2px;
}
.msm-field input,
.msm-field select,
.msm-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.msm-field input:focus,
.msm-field select:focus,
.msm-field textarea:focus {
    outline: none;
    border-color: #4e73df;
    background: #fff;
}
.msm-field input.error,
.msm-field select.error,
.msm-field textarea.error {
    border-color: #e74c3c;
}
.msm-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.msm-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error */
.msm-error {
    display: none;
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 3px;
}

/* Row (2 columns) */
.msm-row {
    display: flex;
    gap: 12px;
}
.msm-row .msm-field {
    flex: 1;
}

/* Buttons */
.msm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.msm-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.msm-btn:active {
    transform: scale(0.98);
}
.msm-btn-next {
    background: #8bc34a;
    color: #fff;
}
.msm-btn-next:hover {
    background: #7cb342;
}
.msm-btn-prev {
    background: #90a4ae;
    color: #fff;
}
.msm-btn-prev:hover {
    background: #78909c;
}
.msm-btn-submit {
    background: #f0ad4e;
    color: #fff;
}
.msm-btn-submit:hover {
    background: #ec971f;
}

/* Progress */
.msm-progress {
    padding: 14px 24px;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}
.msm-progress-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 6px;
}
.msm-progress-step {
    flex: 1;
    background: transparent;
    border-right: 2px solid #fff;
}
.msm-progress-step:last-child {
    border-right: none;
}
.msm-progress-step.active {
    background: #f0ad4e;
}
.msm-progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Message (sending / error) */
.msm-message {
    padding: 40px 24px;
    text-align: center;
}
.msm-message h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.msm-message p {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .msm-page {
        padding: 16px;
    }
    .msm-row {
        flex-direction: column;
        gap: 0;
    }
    .msm-title {
        font-size: 1.1rem;
    }
}
