/* css/accordion.css */

.accordion-step {
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s ease;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
}

.accordion-label {
    font-weight: 600;
    font-size: 16px;
    color: #1C1C1C;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-edit-btn {
    font-size: 14px;
    color: #6B7280;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none;
}

/* Content Area - Max-Height Transition */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
    opacity: 0;
}

/* Active State */
.accordion-step.is-active {
    border-color: #1C1C1C;
}

.accordion-step.is-active .accordion-content {
    max-height: 1200px;
    /* Safe upper bound for smoothly growing the drawer */
    padding-bottom: 24px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s, padding-bottom 0.1s;
}

/* Completed State */
.accordion-step.is-completed .accordion-header {
    cursor: pointer;
}

.accordion-step.is-completed .accordion-edit-btn {
    display: block;
}

/* Locked State */
.accordion-step.is-locked .accordion-header {
    cursor: not-allowed;
    opacity: 0.5;
}

.accordion-step.is-locked .accordion-label {
    color: #9CA3AF;
}