#wizard {
    width: 100%;
    min-height: 310px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#wizard .step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#wizard .step.active {
    display: block;
    opacity: 1;
}

#wizard h2.is-style-section_ttl {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#wizard .w-plan-t {
    font-size: 1.1em;
    font-weight: bold;
}

#wizard .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 17px;
    justify-content: center;
}

.wizard-button-container {
    display: flex;
    align-items: center;
    width: calc(50% - 10px);
    padding: 15px 0;
}

#wizard .wizard-button,
#wizard .wizard-checkbox-button {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    font-size: 1em;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#wizard .wizard-button:hover,
#wizard .wizard-checkbox-button:hover {
    background-color: #e0e0e0;
}

#wizard .wizard-checkbox-button.active {
    background-color: #cfcfcf;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin: 32px;
}

#wizard .wizard-back,
#wizard .wizard-next {
    padding: 10px 20px;
    font-size: 1em;
    text-align: center;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#wizard .wizard-back:hover,
#wizard .wizard-next:hover {
    background-color: #e0e0e0;
}

#wizard .fast {
    margin-bottom: 0.5em;
}

#wizard .w-discount {
    color: #c8861f;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 0.5em;
}

#wizard .w-explanation {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 2em;
}

.step[data-step="1"] .wizard-navigation {
    justify-content: flex-end;
}

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

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

.step.active {
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.step.exiting {
    animation: fadeOut 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.w-header {
    margin-top: 1em !important;
    margin-bottom: 0 !important;
    font-size: 1.6em;
}

.w-estimate {
    font-size: 1.6em;
}

.w-note {
    margin-top: 2em;
    font-size: 0.85em;
    color: #ac5757;
}

#breakdown {
    padding: 0 4em 1.5em;
}

#breakdown p {
    text-align: right;
}

.w-cost {
    font-size: 0.8em;
}

.w-tax {
    font-size: 0.7em;
}

@media screen and (max-width: 599px) {
    #wizard {
        width: 100%;
        padding: 15px;
    }

    #wizard .w-discount {
        font-size: 0.8em;
    }

    #wizard h2.is-style-section_ttl {
        font-size: 1.5em;
    }

    #wizard .wizard-button,
    #wizard .wizard-checkbox-button {
        font-size: 1em;
        padding: 10px 0;
        width: 100%;
    }

    #wizard .wizard-back,
    #wizard .wizard-next {
        width: auto;
        font-size: 1em;
        padding: 10px 20px;
    }

    .wizard-button-container {
        width: 100%;
        justify-content: center;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    #breakdown {
        padding: 0 1em 3em;
    }

    .w-estimate {
        font-size: 1.2em !important;
    }

    .w-note {
        font-size: 0.75em;
    }
}

@media print {
    .no-print {
        display: none;
    }

    #breakdown {
        padding: 0 3em 0;
    }

    .wp-block-spacer {
        height: 1px !important;
    }

    .post_content hr {
        margin: 0.7em 0;
    }

    h2.is-style-section_ttl {
        margin-bottom: 0.8em;
    }

    .w-header {
        margin-top: 0.7em !important;
        margin-bottom: 0 !important;
        font-size: 1.4em;
    }
}
