/*
Theme Name:   Astra - QR Form
Template:     astra
Description: QRForm customizations
*/
.home-search {
    width: 100%;
    height: 236;
    padding: 100px 20px;
}
#ast-scroll-top span.ast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#ast-mobile-header div.ast-builder-button-wrap {
    margin-left: 16px;
    margin-bottom: 8px;
    margin-top: 8px;
}
.main-navigation .menu-link {
    display: block!important;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .main-navigation .menu-link {
        text-align: left;
    }
}
@media screen and (min-width: 922px) and (max-width: 991px) {
    .main-navigation .menu-link {
        max-width: 5rem;
        padding: 0 0.5rem!important;
    }
    .gtranslate_wrapper a.gt_switcher-popup span:first-of-type {
        display: none;
    }
}
@media screen and (min-width: 992px) and (max-width: 1067px) {
    .main-navigation .menu-link {
        max-width: 6rem;
        padding: 0 0.5rem!important;
    }
    .gtranslate_wrapper a.gt_switcher-popup span:first-of-type {
        display: none;
    }
}
@media screen and (min-width: 1068px) and (max-width: 1199px) {
    .main-navigation .menu-link {
        max-width: 6.5rem;
        padding: 0 0.5rem!important;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .main-navigation .menu-link {
        max-width: 6.5rem;
    }
}
@media screen and (min-width: 1440px) {
    .main-navigation .menu-link {
        max-width: 8rem;
    }
}
.ast-header-button-1 .ast-custom-button {
    max-width: 11.5rem;
}
.main-navigation .menu-link, .ast-header-button-1 .ast-custom-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#main .form-preview-wrapper {
    max-width: 100%;
}

/* Cookie banner (aligned with main app; same cookie-agreement) */
.qrform-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500000;
    padding: 0.75rem;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}
.qrform-cookie-banner__inner {
    max-width: 72rem;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
    padding: 1rem 1.25rem 1.25rem;
}
.qrform-cookie-banner__head {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.qrform-cookie-banner__text {
    margin: 0.5rem 0 0;
}
.qrform-cookie-banner__text a {
    color: #0d9488;
    text-decoration: underline;
}
.qrform-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .qrform-cookie-banner__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.qrform-cookie-banner__btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 1px solid #14b8a6;
    background: #fff;
    color: #0d9488;
    transition: background 0.15s ease, color 0.15s ease;
}
.qrform-cookie-banner__btn:hover {
    background: #f0fdfa;
}
.qrform-cookie-banner__btn--primary {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #fff;
}
.qrform-cookie-banner__btn--primary:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.qrform-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 500001;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}
.qrform-cookie-settings__panel {
    width: 100%;
    max-width: 50rem;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 1.25rem 1.5rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #334155;
}
.qrform-cookie-settings__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.qrform-cookie-settings__subtitle {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0.75rem 0 0.25rem;
}
.qrform-cookie-settings__catheading {
    font-weight: 700;
    margin-top: 0.75rem;
}
.qrform-cookie-settings__text {
    margin: 0.35rem 0 0;
}
.qrform-cookie-settings__text a {
    color: #0d9488;
    text-decoration: underline;
}
.qrform-cookie-settings__hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 0.75rem 0;
}
.qrform-cookie-settings__row {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
}
.qrform-cookie-settings__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.qrform-cookie-settings__checkbox {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #0d9488;
}
.qrform-cookie-settings__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
@media (min-width: 768px) {
    .qrform-cookie-settings__footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.qrform-cookie-settings__btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #14b8a6;
    background: #fff;
    color: #0d9488;
}
.qrform-cookie-settings__btn:hover {
    background: #f0fdfa;
}
.qrform-cookie-settings__btn--primary {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
}
.qrform-cookie-settings__btn--primary:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}