/* Find me a class wizard popup */

.fmac-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 640px) {
    .fmac-overlay {
        align-items: center;
        padding: 1.5rem;
    }
}

.fmac-overlay[hidden] {
    display: none !important;
}

.fmac-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.fmac-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(92vh, 920px);
    overflow: auto;
    background: #111;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    border-radius: 1.25rem 1.25rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
    .fmac-dialog {
        border-radius: 1.25rem;
    }
}

.fmac-dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.2rem 0.85rem;
    background: linear-gradient(180deg, #161616 70%, rgba(17, 17, 17, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fmac-dialog-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.fmac-dialog-body {
    padding: 1.1rem 1.2rem 1.5rem;
}

.fmac-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.fmac-close:hover {
    border-color: rgba(212, 246, 0, 0.5);
    color: #d4f600;
}

body.fmac-open {
    overflow: hidden;
}

.fmac-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(212, 246, 0, 0.9);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.fmac-page {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
}

.fmac-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.fmac-progress span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease;
}

.fmac-progress span.is-done,
.fmac-progress span.is-current {
    background: #d4f600;
}

.fmac-progress span.is-done {
    opacity: 0.55;
}

.fmac-step-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.fmac-step-index {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.fmac-step h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.4rem;
}

.fmac-step-copy {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.fmac-step {
    display: none;
}

.fmac-step.is-active {
    display: block;
    animation: fmac-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fmac-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fmac-choice-grid {
    display: grid;
    gap: 0.75rem;
}

.fmac-choice {
    text-align: left;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.fmac-choice:hover {
    border-color: rgba(212, 246, 0, 0.45);
    background: rgba(212, 246, 0, 0.06);
}

.fmac-choice.is-selected {
    border-color: #d4f600;
    background: rgba(212, 246, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(212, 246, 0, 0.35);
}

.fmac-choice:focus-visible {
    outline: 2px solid #d4f600;
    outline-offset: 2px;
}

.fmac-choice-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.fmac-choice-hint {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.4;
}

.fmac-interests {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .fmac-interests {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fmac-interest-chip {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 0.65rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.fmac-interest-chip:hover {
    border-color: rgba(212, 246, 0, 0.4);
}

.fmac-interest-chip.is-selected {
    border-color: #d4f600;
    background: rgba(212, 246, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(212, 246, 0, 0.3);
}

.fmac-interest-chip:disabled,
.fmac-interest-chip.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.fmac-interest-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.fmac-interest-fallback {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 246, 0, 0.16);
    color: #d4f600;
    font-weight: 700;
    font-size: 1.05rem;
}

.fmac-interest-label {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
}

.fmac-interest-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.fmac-locality-default {
    width: 100%;
    text-align: left;
    margin-bottom: 0.85rem;
}

.fmac-locality-search {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #121212;
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.fmac-locality-search:focus {
    outline: none;
    border-color: rgba(212, 246, 0, 0.55);
}

.fmac-locality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    max-height: 220px;
    overflow: auto;
}

.fmac-locality-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.fmac-locality-chip.is-selected,
.fmac-locality-default.is-selected {
    border-color: #d4f600;
    background: rgba(212, 246, 0, 0.12);
    color: #fff;
}

.fmac-date-row,
.fmac-period-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.fmac-date-custom {
    margin: 0 0 1.15rem;
}

.fmac-date-custom input[type="date"] {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #121212;
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color-scheme: dark;
}

.fmac-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.fmac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.2rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.fmac-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fmac-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.fmac-btn-primary {
    background: #d4f600;
    color: #111;
    min-width: 8.5rem;
}

.fmac-btn-primary:hover:not(:disabled) {
    background: #c4e400;
}

.fmac-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.fmac-results-head {
    margin-bottom: 1.25rem;
}

.fmac-results-head h2,
.fmac-results-head h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.fmac-results-head p {
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
    font-size: 0.92rem;
}

.fmac-relaxed {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: rgba(212, 246, 0, 0.85);
}

.fmac-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .fmac-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fmac-card {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.fmac-card:hover {
    border-color: rgba(212, 246, 0, 0.45);
    transform: translateY(-2px);
}

.fmac-card-media {
    position: relative;
    height: 132px;
    background: #1a1a1a;
}

.fmac-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fmac-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.fmac-card-org {
    color: #d4f600;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fmac-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.fmac-card-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

.fmac-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.fmac-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
}

.fmac-card-price {
    margin-top: auto;
    padding-top: 0.7rem;
    font-weight: 700;
    color: #d4f600;
}

.fmac-card-price s {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-right: 0.35rem;
}

.fmac-empty {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
}

.fmac-empty a {
    color: #d4f600;
    text-decoration: underline;
}

.fmac-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fmac-geo-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.48);
    margin-top: 0.65rem;
}
