/* =========================
   FORM STEP
========================= */
.form-step {
    display: none;
    pointer-events: none;
}

.form-step.active {
    display: block !important;
    pointer-events: auto;
}


/* =========================
   PAGE LAYOUT
========================= */
.page-header {
    position: relative;
    z-index: 1;
}

.container-fluid {
    position: relative;
    z-index: 3;
}

.page-header .mask {
    pointer-events: none;
}


/* =========================
   HEADER
========================= */
.custom-header {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
}


/* =========================
   PREVIEW CARD
========================= */
.preview-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.preview-card table {
    width: auto;
    table-layout: auto;
    word-wrap: break-word;
}

.preview-card td {
    border-bottom: none !important;
    padding: 4px 8px;
    font-size: 13px;
    white-space: normal !important;
    overflow-wrap: break-word;
    vertical-align: top;
}

.preview-label {
    width: 160px;
    white-space: nowrap;
}

.preview-separator {
    width: 10px;
    white-space: nowrap;
}


/* =========================
   STEP CONTAINER
========================= */
.step-container {
    background: linear-gradient(90deg,#0a0a0aef,#3a3a44);
    padding: 20px 30px;
    border-radius: 15px;
    position: relative;
    overflow-x: auto;
}

.step-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 10px;
}

/* Horizontal Line */
.step-wrapper::before {
    content: "";
    position: absolute;
    top: 9px;
    left: calc((100% / var(--steps)) / 2);
    right: calc((100% / var(--steps)) / 2);
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 0;
}

/* Step Item */
.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/* Circle */
.step-circle {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border-radius: 50%;
    background: gray;
    transition: 0.3s;
}

/* Label */
.step-label {
    margin-top: 10px;
    font-size: 13px;
    color: gray;
    font-weight: 500;
    transition: 0.3s;
    line-height: 1.3;
    word-break: break-word;
}

/* Active Step */
.step-item.active .step-circle {
    background: #ffffff;
}

.step-item.active .step-label {
    color: #ffffff;
    font-weight: 600;
}

/* Completed Step */
.step-item.completed .step-circle {
    background: #ffffff;
}

.step-item.completed .step-label {
    color: #ffffff;
}


/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    /* HEADER */
    .custom-header {
        min-height: 200px;
        border-radius: 14px;
    }

    .custom-header .container {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .custom-header h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .custom-header p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* STEP */
    .step-container {
        padding: 15px 10px;
    }

    .step-wrapper {
        gap: 5px;
    }

    .step-wrapper::before {
        left: calc((100% / var(--steps)) / 2);
        right: calc((100% / var(--steps)) / 2);
    }

    .step-circle {
        width: 15px;
        height: 15px;
    }

    .step-label {
        font-size: 11px;
    }

    /* PREVIEW */
    .preview-card table td {
        font-size: 12px;
        padding: 4px;
    }

    .preview-card table td:first-child {
        width: 120px !important;
    }

    .preview-label {
        width: 110px !important;
    }
}