/**
 * Public request page (/request) — guest wizard.
 * Navy brand + template green accent (see mehraz-theme.css tokens).
 */
.guest-request {
    --gr-green: var(--mt-accent, #72c90f);
    --gr-green-dark: var(--mt-accent-hover, #5aa80a);
    --gr-green-soft: rgba(114, 201, 15, .12);
    --gr-green-ring: rgba(114, 201, 15, .28);
    --gr-navy: var(--mt-primary, #1c2340);
    --gr-navy-light: var(--mt-primary-light, #31436b);
    --gr-radius: 1.25rem;
    --gr-shadow: 0 10px 40px rgba(28, 35, 64, .08);
    /* Row gutters poke a few px past the screen edge on phones */
    overflow-x: clip;
}

/* ─── Hero (compact header card) ───────────────────────── */
.gr-hero {
    position: relative;
    background: #fff;
    color: var(--gr-navy);
    border: 1px solid #e5e8ee;
    border-radius: 14px;
    padding: 1.15rem 1.4rem 0;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(21, 31, 56, .05);
}

.gr-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}

.gr-hero__heading {
    min-width: 0;
}

.gr-hero__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gr-navy);
    margin: 0;
    line-height: 1.6;
}

.gr-hero__note {
    margin: .1rem 0 0;
    font-size: .82rem;
    color: #6a7591;
}

/* Contact links */
.gr-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gr-contact a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 38px;
    padding: 0 .85rem;
    border-radius: 50rem;
    background: #f8f9fb;
    border: 1px solid #e5e8ee;
    color: var(--gr-navy);
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.gr-contact a:hover {
    background: #fff;
    border-color: #c5c9d3;
    color: var(--gr-navy);
}

.gr-contact i {
    font-size: 1.1rem;
    color: #3c7a0a;
}

.gr-contact small {
    display: none;
}

.gr-contact strong {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
}

/* Steps strip */
.gr-stepper {
    list-style: none;
    display: flex;
    gap: .5rem;
    margin: 0 -1.4rem;
    padding: .7rem 1.4rem;
    border-top: 1px solid #eff1f5;
    background: #fbfcfd;
    border-radius: 0 0 14px 14px;
}

.gr-stepper__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    padding: .2rem .35rem;
    border-radius: .6rem;
    color: #959cae;
    transition: background-color .15s, color .15s;
}

.gr-stepper__item + .gr-stepper__item::before {
    content: "";
    flex: 0 0 1.25rem;
    height: 2px;
    margin-inline-start: -.9rem;
    border-radius: 2px;
    background: #e5e8ee;
}

.gr-stepper__item.is-done + .gr-stepper__item::before,
.gr-stepper__item.is-done + .gr-stepper__item.is-active::before {
    background: var(--gr-green);
}

.gr-stepper__circle {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    border: 1.5px solid #d3d8e1;
    background: #fff;
    transition: background-color .15s, border-color .15s;
}

.gr-stepper__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.gr-stepper__text small {
    display: none;
}

.gr-stepper__text strong {
    font-size: .84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-stepper__item.is-active {
    color: var(--gr-navy);
}

.gr-stepper__item.is-active .gr-stepper__circle {
    background: var(--gr-green);
    border-color: var(--gr-green);
    color: #0e1527;
}

.gr-stepper__item.is-done {
    color: #3c7a0a;
}

.gr-stepper__item.is-done .gr-stepper__circle {
    background: #eef6e2;
    border-color: var(--gr-green);
    color: #3c7a0a;
}

.gr-stepper__item.is-clickable {
    cursor: pointer;
}

.gr-stepper__item.is-clickable:hover,
.gr-stepper__item.is-clickable:focus-visible {
    background: #eef0f4;
    outline: none;
}

.gr-stepper__item.is-clickable:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ─── Panels ───────────────────────────────────────────── */
.gr-panel,
.guest-request .card:not(.wizard-service-card) {
    background: #fff;
    border: 1px solid rgba(28, 35, 64, .07);
    border-radius: var(--gr-radius);
    box-shadow: var(--gr-shadow);
}

.gr-panel {
    padding: 1.75rem;
}

.gr-section-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.5rem;
}

.gr-section-head__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--gr-green-soft);
    color: var(--gr-green-dark);
}

.gr-section-head__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gr-navy);
    margin: 0 0 .25rem;
}

.gr-section-head__desc {
    color: var(--mt-text-muted, #8896ae);
    font-size: .88rem;
    margin: 0;
}

/* Shared partials (voice note / documents) inside the guest page */
.guest-request .card .text-primary,
.guest-request .document-dropzone .text-primary {
    color: var(--gr-green-dark) !important;
}

.guest-request .card .btn-outline-primary {
    --bs-btn-color: var(--gr-green-dark);
    --bs-btn-border-color: rgba(114, 201, 15, .55);
    --bs-btn-hover-bg: var(--gr-green);
    --bs-btn-hover-border-color: var(--gr-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--gr-green-dark);
    --bs-btn-active-border-color: var(--gr-green-dark);
}

.guest-request .voice-record-btn {
    background: var(--gr-green-soft);
    color: var(--gr-green-dark);
    box-shadow: 0 0 0 6px rgba(114, 201, 15, .08);
}

.guest-request .voice-record-btn:hover {
    background: rgba(114, 201, 15, .22);
    box-shadow: 0 0 0 9px rgba(114, 201, 15, .12);
}

.guest-request .voice-record-btn--recording {
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
}

.guest-request .document-dropzone {
    border-color: rgba(114, 201, 15, .45);
    background: rgba(114, 201, 15, .04);
}

.guest-request .document-dropzone:hover,
.guest-request .document-dropzone--drag {
    border-color: var(--gr-green);
    background: rgba(114, 201, 15, .09);
}

.guest-request .progress-bar {
    background-color: var(--gr-green);
}

/* Service picker */
.guest-request .wizard-cat-list .list-group-item.active {
    background: var(--gr-navy);
    border-color: var(--gr-navy);
    box-shadow: inset -4px 0 0 var(--gr-green);
}

.guest-request .wizard-service-card {
    border-radius: 1rem;
}

.guest-request .wizard-service-card:hover,
.guest-request .wizard-service-card--selected {
    border-color: var(--gr-green) !important;
    box-shadow: 0 0 0 4px var(--gr-green-soft) !important;
}

.guest-request .wizard-service-card .wizard-service-icon.bg-primary-subtle {
    background: var(--gr-green-soft) !important;
    color: var(--gr-green-dark) !important;
}

/* ─── Selected service chip ────────────────────────────── */
.gr-service-chip {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--gr-green-soft), rgba(114, 201, 15, .03));
    border: 1px solid rgba(114, 201, 15, .3);
}

.gr-service-chip__icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-green);
    color: #fff;
    font-size: 1.2rem;
}

/* ─── Inputs ───────────────────────────────────────────── */
.gr-label {
    font-weight: 700;
    color: var(--gr-navy);
    font-size: .9rem;
}

.gr-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(28, 35, 64, .12);
    border-radius: .9rem;
    background: #fafbfd;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.gr-input > i {
    padding-inline-start: .95rem;
    color: var(--mt-text-muted, #8896ae);
    font-size: 1.15rem;
    transition: color .2s;
}

.gr-input .form-control {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    padding: .8rem .9rem;
    font-size: .95rem;
}

.gr-input--textarea .form-control {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.9;
}

.gr-input:focus-within {
    background: #fff;
    border-color: var(--gr-green);
    box-shadow: 0 0 0 4px var(--gr-green-soft);
}

.gr-input:focus-within > i {
    color: var(--gr-green-dark);
}

.gr-input.is-invalid {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 4px rgba(var(--bs-danger-rgb), .08);
}

.gr-error {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    color: var(--bs-danger);
    font-size: .82rem;
}

.guest-request .form-check-input:checked {
    background-color: var(--gr-green);
    border-color: var(--gr-green);
}

.guest-request .form-check-input:focus {
    border-color: var(--gr-green);
    box-shadow: 0 0 0 .25rem var(--gr-green-soft);
}

.gr-link {
    color: var(--gr-green-dark);
    font-weight: 700;
}

.gr-text-accent {
    color: var(--gr-green-dark);
}

/* ─── Buttons ──────────────────────────────────────────── */
.gr-btn-primary {
    position: relative;
    background: var(--gr-green);
    border: 0;
    color: #0e1527;
    font-weight: 700;
    padding-block: .75rem;
    border-radius: .9rem;
    box-shadow: 0 10px 24px rgba(114, 201, 15, .32);
    transition: transform .15s, box-shadow .2s, filter .2s;
}

.gr-btn-primary:hover,
.gr-btn-primary:focus-visible {
    background: #66b80c;
    color: #0e1527;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(114, 201, 15, .4);
}

.gr-btn-primary:disabled,
.gr-btn-primary.disabled {
    color: #0e1527;
    opacity: .5;
    box-shadow: none;
    transform: none;
}

.gr-btn-ghost {
    position: relative;
    background: #fff;
    color: var(--gr-navy);
    border: 1.5px solid rgba(28, 35, 64, .14);
    border-radius: .8rem;
    font-weight: 600;
}

.gr-btn-ghost:hover {
    border-color: var(--gr-green);
    color: var(--gr-green-dark);
    background: var(--gr-green-soft);
}

/* ─── Side info ────────────────────────────────────────── */
.gr-aside {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--gr-radius);
    background: linear-gradient(160deg, #fff 0%, #f5fbee 100%);
    border: 1px solid rgba(114, 201, 15, .22);
    box-shadow: var(--gr-shadow);
}

.gr-aside__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gr-navy);
    margin-bottom: 1.25rem;
}

.gr-aside__title i {
    color: var(--gr-green-dark);
    font-size: 1.25rem;
}

.gr-aside__steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.gr-aside__steps li {
    position: relative;
    display: flex;
    gap: .85rem;
    padding-bottom: 1.1rem;
}

.gr-aside__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: .2rem;
    inset-inline-start: .95rem;
    width: 2px;
    background: rgba(114, 201, 15, .3);
}

.gr-aside__steps li > span {
    flex-shrink: 0;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-green);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}

.gr-aside__steps strong {
    display: block;
    color: var(--gr-navy);
    font-size: .92rem;
    margin-bottom: .15rem;
}

.gr-aside__steps p {
    margin: 0;
    color: var(--mt-text-muted, #8896ae);
    font-size: .83rem;
    line-height: 1.8;
}

.gr-aside__note {
    display: flex;
    gap: .5rem;
    padding: .85rem 1rem;
    border-radius: .85rem;
    background: rgba(28, 35, 64, .04);
    color: var(--mt-text-secondary, #3d5282);
    font-size: .82rem;
    line-height: 1.8;
}

.gr-aside__note i {
    color: var(--gr-green-dark);
    font-size: 1.1rem;
    margin-top: .15rem;
}

/* ─── Success ──────────────────────────────────────────── */
.gr-success {
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.75rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: var(--gr-radius);
    border: 1px solid rgba(114, 201, 15, .25);
    box-shadow: var(--gr-shadow);
}

.gr-success__icon {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gr-green) 0%, #8ad916 100%);
    box-shadow: 0 0 0 10px var(--gr-green-soft), 0 14px 34px rgba(114, 201, 15, .4);
    animation: grPop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes grPop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gr-success__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gr-navy);
    margin-bottom: .5rem;
}

.gr-success__desc {
    color: var(--mt-text-secondary, #3d5282);
    margin-bottom: 1.5rem;
}

.gr-success__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .75rem;
    margin: 0 0 1.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f7f9fc;
    text-align: start;
}

.gr-success__meta dt {
    font-size: .75rem;
    font-weight: 500;
    color: var(--mt-text-muted, #8896ae);
    margin-bottom: .2rem;
}

.gr-success__meta dd {
    margin: 0;
    font-weight: 700;
    color: var(--gr-navy);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 767.98px) {
    .gr-hero {
        padding: .95rem 1rem 0;
        border-radius: 12px;
    }

    .gr-hero__top {
        gap: .75rem;
        padding-bottom: .85rem;
    }

    .gr-hero__title {
        font-size: 1.1rem;
    }

    .gr-hero__note {
        font-size: .78rem;
    }

    .gr-contact {
        width: 100%;
    }

    .gr-contact li {
        flex: 1 1 0;
        min-width: 0;
    }

    .gr-contact a {
        width: 100%;
        justify-content: center;
        padding: 0 .6rem;
    }

    .gr-contact strong {
        font-size: .82rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gr-stepper {
        margin: 0 -1rem;
        padding: .55rem .75rem;
        gap: .25rem;
        justify-content: space-between;
        border-radius: 0 0 12px 12px;
    }

    .gr-stepper__item {
        flex: 0 1 auto;
        gap: .35rem;
        padding: .2rem;
    }

    .gr-stepper__item + .gr-stepper__item::before {
        display: none;
    }

    .gr-stepper__circle {
        width: 1.5rem;
        height: 1.5rem;
        font-size: .72rem;
    }

    .gr-stepper__text strong {
        font-size: .74rem;
    }

    .gr-panel {
        padding: 1.15rem;
        border-radius: 1rem;
    }

    .gr-aside {
        position: static;
    }

    .gr-success {
        padding: 2rem 1.15rem;
    }
}
