:root {
    --brand-green: #1f5f4a;
    --brand-red: #9e2f2f;
    --brand-cream: #f4f1ea;
    --ink: #1d232b;
    --muted: #6e7781;
}

body {
    font-family: 'Source Sans 3', 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: 'Merriweather', 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;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.brand-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0;
}

.brand-logo {
    max-height: 64px;
    width: auto;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.35;
    color: #52606f;
    font-weight: 600;
}

.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
    );
}

.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: 1rem 1.1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.2s ease;
    color: #fff;
}

.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-head {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.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-title {
    font-family: 'Merriweather', 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;
}

.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;
}

.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-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;
}

.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;
    }

    .media-shell {
        min-height: 220px;
        height: auto;
    }

    .cta-switch {
        grid-template-columns: 1fr;
    }
}
