/* footer.css (framework-free) — card footer layout */

/* Card container */


/* Top layout */
.qe-footerTop {
    display: grid;
    grid-template-columns: 1.2fr 2.2fr;
    gap: 40px;
    align-items: start;
}

/* Brand block */
.qe-footerBrand__logoRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qe-footerBrand__logo {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #111;
}

.qe-footerBrand__name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.qe-footerBrand__desc {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    max-width: 360px;
}

/* App store badges */
.qe-footerBrand__stores {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qe-storeBadge img {
    height: 40px;
    width: auto;
    display: block;
}

/* Columns */
.qe-footerCols {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 42px;
}

.qe-footerCol__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #111;
}

.qe-footerCol__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}

.qe-footerCol__links a {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: opacity 140ms ease;
}

.qe-footerCol__links a:hover {
    opacity: 0.75;
}

/* Divider line like screenshot */
.qe-footerDivider {
    height: 1px;
    background: #e6e9ef;
    margin: 22px 0;
}

/* ---------------- Bottom row (MATCH ATTACHED) ---------------- */
.qe-footerBottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* left | center | right */
    align-items: center;
    gap: 18px;
}

.qe-footerBottom__left {
    font-size: 14px;
    color: #6b7280;
    justify-self: start;
}

.qe-footerBottom__center {
    justify-self: center;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.qe-footerBottom__center a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: opacity 140ms ease;
}

.qe-footerBottom__center a:hover {
    opacity: 0.75;
}

.qe-footerBottom__right {
    justify-self: end;
}

/* Bottom-right social icon row */
.qe-footerBottomSocial {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.qe-socialBtnSmall {
    width: 34px;
    height: 34px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease;
}

.qe-socialBtnSmall:hover {
    transform: translateY(-1px);
    border-color: #d7dbe4;
    opacity: 0.9;
    color: #111;
}

/* ---------------- Modal (unchanged) ---------------- */
.qe-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.qe-modal.is-open {
    display: block;
}

.qe-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.qe-modal__panel {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 32px));
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.qe-modal__header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f2f2f2;
}

.qe-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.qe-modal__x {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.qe-modal__x:hover {
    opacity: 0.9;
}

.qe-modal__body {
    padding: 16px 18px 18px;
}

.qe-field {
    display: block;
    margin-bottom: 14px;
}

.qe-field__label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.qe-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 12px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
    color: #111;
}

.qe-input:focus {
    border-color: #c7c7c7;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.qe-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.qe-btn {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
}

.qe-btn--ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #333;
}

.qe-btn--ghost:hover {
    background: #f9fafb;
}

.qe-btn--primary {
    background: #111;
    color: #fff;
}

.qe-btn--primary:hover {
    opacity: 0.92;
}

.qe-modal__note {
    margin-top: 12px;
    font-size: 13px;
    color: #444;
    background: #f7f7f7;
    border: 1px solid #efefef;
    padding: 10px 12px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 980px) {
    .qe-footerTop {
        grid-template-columns: 1fr;
    }

    .qe-footerCols {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 28px;
    }

    .qe-footerBottom {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }

    .qe-footerBottom__center {
        justify-self: start;
    }

    .qe-footerBottom__right {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .qe-footerCard__inner {
        padding: 20px;
    }

    .qe-footerCols {
        grid-template-columns: 1fr;
    }

    .qe-footerBottom__center {
        gap: 14px;
    }
}

/* ---------------- Simple footer (matches attached) ---------------- */

.qe-footerSimple {
    width: 100%;
    background: #fff;
    padding: 18px 0 22px;
}

.qe-footerSimple,
.qe-footerCard {
    margin-top: auto;
}

.qe-footerSimple__inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.qe-footerSimpleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}

.qe-footerSimpleRow__left {
    font-size: 14px;
    color: #6b7280;
}

.qe-footerSimpleRow__right {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.qe-footerSimpleRow__right a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: opacity 140ms ease;
}

.qe-footerSimpleRow__right a:hover {
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 720px) {
    .qe-footerSimple__inner {
        padding: 0 20px;
    }

    .qe-footerSimpleRow {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }
}