@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --brand-green: #1f5f4a;
    --brand-red: #9e2f2f;
    --brand-cream: #f4f1ea;
    --ink: #1d232b;
    --muted: #6e7781;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top right, #f7f4ef 0%, #eef2ee 55%, #f8fafc 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    color: #17352f;
}

.top-stripe {
    height: 8px;
    background: linear-gradient(90deg, var(--brand-red) 0 34%, #f4f4f4 34% 66%, var(--brand-green) 66% 100%);
}

.hero {
    overflow: hidden;
    border-radius: 1rem;
}

.brand-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.hero-heading-block {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.1rem 1rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid #e8ded1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 243, 234, 0.95) 100%);
    box-shadow: 0 10px 26px rgba(21, 44, 37, 0.08);
}

.hero-heading-block h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #102d27;
    margin-bottom: 0.6rem !important;
    text-wrap: balance;
}

.hero-heading-block h1::after {
    content: '';
    display: block;
    width: min(160px, 52%);
    height: 4px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #9e2f2f, #1f5f4a);
}

.brand-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0;
}

.brand-logo {
    width: 50%;
    max-width: 50%;
    height: auto;
}

@media (max-width: 767.98px) {
    .brand-logo {
        width: 100%;
        max-width: 100%;
    }
}

.hero-subtitle {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.55vw, 1.34rem);
    line-height: 1.55;
    color: #334455;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-site-link {
    padding-inline: 1.1rem;
    font-weight: 700;
}

.navbar-logo {
    max-height: 40px;
    width: auto;
}

.lead-box {
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--brand-cream) 100%);
    border: 1px solid #e6e0d3;
    height: 100%;
}

.media-shell {
    min-height: 0;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #dce8df;
    border: 1px solid #c6d7cc;
}

@media (min-width: 992px) {
    .hero-content-row > [class*='col-lg-'] {
        display: flex;
    }

    .hero-content-row .lead-box,
    .hero-content-row .media-shell {
        width: 100%;
    }
}

.fallback-media {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    color: #24463b;
    padding: 1rem;
    background: repeating-linear-gradient(
        -45deg,
        #d5e4da,
        #d5e4da 14px,
        #e4efe8 14px,
        #e4efe8 28px
    );
}

.video-placeholder {
    position: relative;
    height: 100%;
    min-height: 260px;
    background: #dce8df;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.video-play-btn {
    position: relative;
    z-index: 1;
    border: 1px solid var(--brand-red);
    background: var(--brand-red);
    color: #fff;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 6px 18px rgba(29, 46, 41, 0.26);
}

.video-play-btn:hover,
.video-play-btn:focus {
    background: #842525;
    border-color: #842525;
}

.video-play-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-brand {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #174a3a;
    border-color: #174a3a;
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand-green);
    color: #fff;
}

.cta-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cta-switch-btn {
    border: 1px solid var(--brand-red);
    background: linear-gradient(135deg, #b43d3d 0%, var(--brand-red) 100%);
    border-radius: 1rem;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    transition: all 0.2s ease;
    color: #fff;
    overflow: hidden;
}

.cta-switch-btn:hover {
    border-color: #7f2525;
    background: linear-gradient(135deg, #a63333 0%, #852626 100%);
    transform: translateY(-1px);
}

.cta-switch-btn.active {
    border-color: #6d1f1f;
    box-shadow: 0 0 0 3px rgba(158, 47, 47, 0.26);
    background: linear-gradient(135deg, #9e2f2f 0%, #7a2525 100%);
}

.cta-icon-col {
    width: 3.4rem;
    min-width: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.26);
}

.cta-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cta-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.cta-subtitle {
    color: #eff7f2;
    font-size: 0.96rem;
}

.cta-choice-hint {
    border: 1px solid #c6d7cc;
    background: #f4f9f6;
    color: #194235;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    font-weight: 600;
}

.wysiwyg-editor {
    min-height: 220px;
    background: #fff;
}

.faq-editor {
    min-height: 160px;
}

.editor-content p:last-child,
.editor-content ul:last-child,
.editor-content ol:last-child,
.editor-content h1:last-child,
.editor-content h2:last-child,
.editor-content h3:last-child,
.editor-content h4:last-child {
    margin-bottom: 0;
}

.editor-content img,
.informacio-content img,
.ql-editor img {
    max-width: 100%;
    height: auto;
}

.editor-content img.ql-align-center,
.informacio-content img.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.editor-content img.ql-align-right,
.informacio-content img.ql-align-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.editor-content img.ql-align-left,
.informacio-content img.ql-align-left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.form-panel {
    scroll-margin-top: 20px;
    margin-bottom: 1.5rem;
}

.consent-block {
    margin-top: 0.75rem;
    border: 1px solid #d7e0dc;
    border-radius: 0.85rem;
    padding: 0.9rem;
    background: #fafcfb;
}

.consent-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item .form-check-input {
    margin-top: 0.22rem;
}

.faq-section {
    border-top: 6px solid #ded8cb;
}

.accordion-item {
    border: 1px solid #d7ddd8;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    font-weight: 700;
    color: #18352f;
    background-color: #f8fbfa;
}

.accordion-button:not(.collapsed) {
    color: #17352f;
    background-color: #edf3ef;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 95, 74, 0.2);
}

.site-footer {
    background: #1d2e29;
    color: #e8eeeb;
}

.footer-contact-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-contact {
    flex: 1;
    min-width: 0;
}

.footer-privacy-link {
    margin-left: auto;
    align-self: flex-end;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    white-space: nowrap;
}

.footer-logo-old {
    width: clamp(120px, 14vw, 180px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer h2 {
    color: #ffffff;
}

.site-footer a {
    color: #cde7d8;
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.checkbox-grid.invalid-group {
    border: 1px solid #dc3545;
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.checkbox-grid.valid-group {
    border: 1px solid #198754;
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.option-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid #d8dde3;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    cursor: pointer;
}

.option-box input {
    margin-top: 0;
}

.admin-login-page {
    background: linear-gradient(180deg, #f7f9fb, #eaf0ee);
}

.admin-page .uzenet-cell {
    max-width: 340px;
    white-space: normal;
    word-break: break-word;
}

.admin-page td .btn {
    white-space: nowrap;
}

.admin-dashboard-chart-card {
    border: 1px solid #dce7e2;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 6px 18px rgba(23, 53, 47, 0.05);
}

.chart-shell {
    position: relative;
    min-height: 280px;
}

.text-bg-brand {
    background-color: var(--brand-green) !important;
    color: #fff !important;
}

.admin-content-page .content-actions {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #d4ddd7;
    position: relative;
    z-index: 5;
    clear: both;
}

.admin-content-page .btn-save-visible {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #fff !important;
    font-weight: 700;
}

.admin-content-page button[type="submit"] {
    min-width: 130px;
}

.admin-content-page .wysiwyg-toolbar-host.ql-toolbar.ql-snow {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8faf9;
    border: 1px solid #d4ddd7;
    border-bottom: 0;
    border-radius: 0.4rem 0.4rem 0 0;
}

.admin-content-page .wysiwyg-editor.ql-container.ql-snow {
    border: 1px solid #d4ddd7;
    border-radius: 0 0 0.4rem 0.4rem;
    height: auto !important;
    min-height: 220px;
    position: relative;
    z-index: 1;
}

.admin-content-page .faq-editor.ql-container.ql-snow {
    min-height: 170px;
}

.admin-content-page .wysiwyg-editor .ql-editor {
    min-height: 170px;
    max-height: 380px;
    overflow-y: auto;
}

.admin-content-page .faq-editor .ql-editor {
    min-height: 120px;
    max-height: 260px;
}

.admin-content-page .editor-link-controls {
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid #d7e0dc;
    border-radius: 0.6rem;
    background: #f8fbf9;
}

.admin-content-page .editor-link-controls .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #445264;
}

.admin-content-page .ql-editor img[data-editor-selected="1"] {
    outline: 3px solid rgba(31, 95, 74, 0.45);
    outline-offset: 2px;
}

.editor-image-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(14, 24, 36, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.editor-image-modal.is-open {
    display: flex;
}

.editor-image-modal__dialog {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid #d6e0dc;
    box-shadow: 0 18px 44px rgba(17, 31, 43, 0.32);
    overflow: hidden;
}

.editor-image-modal__header,
.editor-image-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f6faf8;
    border-bottom: 1px solid #dce7e2;
}

.editor-image-modal__footer {
    border-top: 1px solid #dce7e2;
    border-bottom: 0;
    justify-content: flex-end;
}

.editor-image-modal__title {
    margin: 0;
    font-size: 1.05rem;
    color: #17352f;
}

.editor-image-modal__body {
    padding: 1rem;
}

body.has-editor-image-modal {
    overflow: hidden;
}

.editor-content a.editor-link-button,
.informacio-content a.editor-link-button,
.ql-editor a.editor-link-button {
    display: inline-block;
    background: var(--brand-green);
    border: 1px solid var(--brand-green);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 3px 10px rgba(23, 74, 58, 0.18);
}

.editor-content a.editor-link-button:hover,
.editor-content a.editor-link-button:focus,
.informacio-content a.editor-link-button:hover,
.informacio-content a.editor-link-button:focus,
.ql-editor a.editor-link-button:hover,
.ql-editor a.editor-link-button:focus {
    background: #174a3a;
    border-color: #174a3a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(23, 74, 58, 0.22);
}

@media (max-width: 991.98px) {
    .brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-privacy-link {
        margin-left: 0;
        align-self: flex-start;
    }

    .media-shell {
        min-height: 220px;
        height: auto;
    }

    .cta-switch {
        grid-template-columns: 1fr;
    }
}
