.wizard-step-node {
    flex: 1;
    z-index: 1;
}

.wizard-step-line {
    position: absolute;
    top: 22px;
    right: 10%;
    left: 10%;
    height: 2px;
    background: var(--bs-border-color);
    z-index: 0;
}

.wizard-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .3s, box-shadow .3s;
}

.wizard-step-label {
    font-size: .78rem;
    white-space: nowrap;
}

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

.wizard-step-enter {
    animation: wizardFadeIn .35s ease both;
}

.wizard-service-card {
    border: 2px solid var(--bs-border-color);
    border-radius: .75rem;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    user-select: none;
}

.wizard-service-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
    transform: translateY(-2px);
}

.wizard-service-card--selected {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .18) !important;
}

.wizard-service-icon {
    width: 44px;
    height: 44px;
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color .2s;
}

.wizard-cat-list .list-group-item {
    border-radius: .6rem;
    margin-bottom: .4rem;
    border: 1px solid var(--bs-border-color);
    font-weight: 500;
    transition: background-color .2s, color .2s, border-color .2s;
}

.wizard-cat-list .list-group-item.active {
    background-color: #30426a;
    border-color: #30426a;
    color: #fff;
}

.cursor-pointer { cursor: pointer; }

.letter-spacing { letter-spacing: .06em; }

.lh-md { line-height: 1.65; }

.choices__list--dropdown,
.choices__list[aria-expanded] {
    z-index: 1055 !important;
}

.status-timeline-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.status-timeline-circle--active {
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .15);
}

.status-timeline-line {
    width: 2px;
    flex: 1;
    min-height: 2rem;
    margin: 4px auto;
}

.status-timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: .35rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-icon-spin {
    display: inline-block;
    animation: spin 2s linear infinite;
}

.document-dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: .75rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease, transform .15s ease;
    background: rgba(var(--bs-primary-rgb), .02);
}

.document-dropzone:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .05);
}

.document-dropzone--drag {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .08);
    transform: scale(1.01);
}

.document-upload-item {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: .5rem .75rem;
    transition: background-color .2s ease;
}

.document-upload-item:hover {
    background: rgba(var(--bs-primary-rgb), .03);
}

.voice-record-btn {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), .06);
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.voice-record-btn:hover,
.voice-record-btn:active {
    background: rgba(var(--bs-primary-rgb), .18);
    box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), .1);
    transform: scale(1.03);
}

.voice-record-btn--recording {
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
    box-shadow: 0 0 0 6px rgba(var(--bs-danger-rgb), .08);
}

.voice-pulse-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--bs-danger);
    display: inline-block;
    animation: voicePulse 1.2s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.4); }
}

.voice-note-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1rem;
    background: rgba(var(--bs-primary-rgb), .02);
}

.audio-player-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: #fff;
    transition: background-color .2s ease, transform .15s ease;
}

.audio-player-btn:hover,
.audio-player-btn:active {
    background: var(--bs-primary);
    filter: brightness(1.1);
    transform: scale(1.04);
}

.audio-player-rate-btn {
    flex-shrink: 0;
    min-width: 2.75rem;
    height: 2.25rem;
    padding: 0 .5rem;
    border-radius: .5rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: .78rem;
    font-weight: 600;
}

.audio-player-rate-btn:hover,
.audio-player-rate-btn:active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.audio-player-seek {
    accent-color: var(--bs-primary);
}

@media (max-width: 575.98px) {
    .voice-record-btn {
        width: 5.5rem;
        height: 5.5rem;
    }

    .voice-record-btn i {
        font-size: 1.75rem;
    }

    .audio-player-btn {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 991.98px) {
    .services-wizard .wizard-cat-list {
        display: flex;
        flex-direction: row;
        gap: .5rem;
        overflow-x: auto;
        padding-bottom: .5rem;
        scrollbar-width: thin;
    }

    .services-wizard .wizard-cat-list .list-group-item {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 0;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .service-period-field {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .services-wizard .wizard-progress-card .card-body {
        padding: .85rem !important;
    }

    .services-wizard .wizard-step-circle {
        width: 36px;
        height: 36px;
        font-size: .8rem;
    }

    .services-wizard .wizard-step-line {
        top: 18px;
    }

    .services-wizard .wizard-step-label {
        display: none;
    }

    .services-wizard .card-body.p-4 {
        padding: 1rem !important;
    }

    .services-wizard .wizard-service-card .card-body {
        padding: 1rem !important;
    }

    .services-wizard .document-dropzone {
        padding: 1.25rem .75rem;
    }

    .services-wizard .wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .services-wizard .wizard-actions > .btn,
    .services-wizard .wizard-actions__group,
    .services-wizard .wizard-actions__group > .btn,
    .services-wizard .service-form-actions > .btn {
        width: 100%;
    }

    .services-wizard .wizard-actions__group {
        flex-direction: column-reverse;
    }

    .services-wizard .table-responsive {
        font-size: .86rem;
    }
}

@media (max-width: 420px) {
    .services-wizard .wizard-step-circle {
        width: 32px;
        height: 32px;
    }

    .services-wizard .wizard-progress-card .progress {
        height: 4px !important;
    }

    .services-wizard h4 {
        font-size: 1.1rem;
    }

    .services-wizard h5 {
        font-size: 1rem;
    }
}

.wizard-step-node--clickable {
    cursor: pointer;
}

.wizard-step-node--clickable .wizard-step-circle {
    transition: background-color .3s, box-shadow .3s, transform .15s;
}

.wizard-step-node--clickable:hover .wizard-step-circle,
.wizard-step-node--clickable:focus-visible .wizard-step-circle {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(var(--bs-success-rgb), .2);
}

.wizard-step-node--clickable:hover .wizard-step-label {
    color: var(--bs-success) !important;
    text-decoration: underline;
}

/* Guest pages header logo */
.guest-logo {
    height: 56px;
    width: auto;
}

@media (max-width: 575.98px) {
    .guest-logo {
        height: 44px;
    }
}

/* custom.min.css hides the content of every disabled button (meant for the
   loading state). Keep labels visible on buttons that are simply disabled. */
button[disabled]:not([data-loading]) > :not(.btn-loading-overlay) {
    opacity: 1;
}

/* Keep the Persian font even if the theme skin attribute is lost
   (Livewire wire:navigate replaces the <html> attributes). */
body {
    font-family: "Yekan Bakh NoEn", Tahoma, sans-serif;
}
