/* ================= WIZARD PAGE ================= */

#activity-wizard {
    min-height: 100vh;
    background: #f8fafc;
    /* display: flex; */
    justify-content: center;
    /* padding: 24px; */
}

/* ================= WIZARD CONTAINER ================= */

#wizard-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffffa3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    backdrop-filter: blur(5px);
}

/* ================= HEADER ================= */

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Title + edit button cluster */
.wizard-title-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Title + input share space */
.wizard-title,
.wizard-title-input {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Input looks like title */
.wizard-title-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

/* Icon buttons */
#edit-activity-name-btn,
#wizard-close-btn {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;

    font-size: 14px;
    line-height: 1;
    color: #374151;
}

/* Hover */


/* Disabled edit (future-safe) */
#edit-activity-name-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================= STEP INDICATOR ================= */

.wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}


/* ================= STEP CONTENT ================= */

.wizard-step-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.wizard-step-content:not(.hidden) {
    display: flex;
    flex-direction: column;
}

/* ================= STEP 2 FULL WORKSPACE ================= */

#wizard-step-2:not(.hidden) {
    flex: 1;
}

#wizard-container.step-2-fullscreen {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 16px 24px;
}

/* ================= CSV TABLE ================= */

.table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    margin-top: 8px;
}

#csv-preview-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#csv-preview-table th,
#csv-preview-table td {
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    white-space: nowrap;
}

#csv-preview-table th {
    background: #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
}

/* ================= FORM ELEMENTS ================= */

#wizard-container label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

#wizard-container textarea {
    resize: vertical;
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* ================= FOOTER ================= */

.wizard-footer,
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;     gap: 10px;
} 

/* ================= UTILITY ================= */

.hidden {
    display: none !important;
}



/* ------------------ new css ------------------ */
.wizard-wrapper{min-height: 100vh;}
.wizard-wrapper svg {
    position: absolute;
    bottom: 0;
    left: 0;
}

.wizard-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdf4f0;     padding: 20px
}

.wizard-body{padding: 35px;     flex: 1;}
.wizard-header {
    padding: 35px;
    background: #F48120;
}
.wizard-title, .wizard-title-input {
    color: #fff;
    font-size: 32px;
}

.step-counter {
    font-size: 30px;
    font-weight: 700;
    width: 65px;
    height: 65px;
    line-height: 65px;
    display: block;
    margin: auto;
    text-align: center;
    background: #f1dfd0;
    border-radius: 100%;
        margin-bottom: 10px;
}
.wizard-steps {
    max-width: 1000px;
    margin: auto;
    justify-content: space-between; margin-top: 15px;   
}
.wizard-step{font-weight: 500; color: #8f8f8f; position: relative;}
.wizard-step.active {
    color: #000;
}

.wizard-step.active .step-counter {
    background: #000000;
    color: #fff;
}


.wizard-step:after {
    content: "";
    position: absolute;
    top: 32px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #f1dfd0;
    z-index: -1;
}

.wizard-step:first-child:after {
    display: none;
}

.wizard-step.active:after {
    background: #000;
}

.wizard-step {
    width: 25%;
    text-align: center;
}


/*  */
.wizard-step-content:not(.hidden) {
    display: block;
    margin-top: 50px;
}

.wizard-step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.wizard-step-content input {
    width: 100%;
    display: block;
    padding: 10px;
    border: 1px solid #cdcdcd;
    border-radius: 6px;
    background: #fff;
}
.wizard-step-content input[type=file] {
    height: 50px;
}
.wizard-step-content input[type=file]::-webkit-file-upload-button {
    margin: -10px 10px -10px -10px;
    height: 50px;
    border: 0;
    padding: 10px 20px;
    border-right: 1px solid #ccc;
}
.wizard-hint {
    margin-top: 3px;
}
.wizard-hint {
    margin-top: 3px;
}

.wizard-footer button, .primary-btn {
    border: 0;
    background: #f48120;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    height: 45px;
    min-width: 120px;
}

.wizard-footer {
    margin-top: 100px;     justify-content: flex-end;
}

.secondary-btn{
     border: 1px solid #f48120;
    background: transparent;
    color: #f48120;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    height: 45px;
    min-width: 120px;
}
.wizard-actions{justify-content: flex-start;}
#wizard-close-btn {
    background: #fff;
    border-radius: 100%;
}