/*
 * calculate-deferred - Combined non-critical styles
 * Bundles: forms.css, faq.css, blog.css, blocks.css, modal.css, footer.css, sections.css
 */

/* ==========================================================================
   BASE UTILITIES (deferred from base.css)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.text-center { text-align: center; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }
.mt-md { margin-top: 2rem; }
.bg-light { background-color: #f9f9f9; }
.section { padding: 4rem 0; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   BUTTONS / HERO — removed duplicates.
   Canonical sources: buttons.css (critical on other pages, async on front page)
   and hero.css (critical on other pages).
   ========================================================================== */

/* ==========================================================================
   FORMS (forms.css)
   ========================================================================== */
.contact-form-wrapper-fg {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-bg-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 1;
    background: #FAFAFA;
}

.contact-form-content-fg {
    position: relative;
    z-index: 2;
}

.contact-logo-top-fg {
    text-align: center;
    margin-bottom: 20px;
}

.contact-logo-top-fg img {
    width: 80px;
    height: auto;
}

.contact-form-heading-fg {
    font-weight: 600;
    font-size: 20px;
    color: #000000;
    text-align: left;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.contact-form-fg {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-fg {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-fg label {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

.form-group-fg input,
.form-group-fg textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group-fg input:focus,
.form-group-fg textarea:focus {
    outline: none;
    border-color: #EA5A0B;
}

.form-group-fg textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-fg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox-fg input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-checkbox-fg label {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

.contact-submit-btn-fg {
    width: 100%;
    padding: 15.5px 30px;
    background: #000;
    color: #FFFFFF;
    border: none;
    border-radius: 53px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.contact-submit-btn-fg:hover {
    background: #D14F09;
    transform: translateY(-2px);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
    display: block;
}

/* .contact-page-* styles → in sections-kontakta-oss.css (canonical) */

.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.5;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
}

.form-message-error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

.form-recaptcha-fg,
.form-recaptcha-contact {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   FAQ (faq.css)
   ========================================================================== */
.faq-section-fg {
    background: #FFFFFF;
    padding: 80px 20px;
}

.faq-container-fg {
    max-width: 1190px;
    margin: 0 auto;
}

.faq-header-fg {
    text-align: center;
    margin-bottom: 60px;
}

.section-label-center-fg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.label-dot-fg {
    width: 10px;
    height: 10px;
    background: #EA5A0B;
    border-radius: 50%;
    flex-shrink: 0;
}

.label-text-fg {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5em;
    color: #636363;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.faq-main-heading-fg {
    font-weight: 600;
    font-size: 40px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 15px 0;
}

.faq-subheading-fg {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

.faq-items-fg {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item-fg {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-fg.active {
    border-color: #EA5A0B;
    box-shadow: 0 4px 12px rgba(234, 90, 11, 0.1);
}

.faq-question-fg {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 28px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-question-fg:hover {
    background-color: #FAFAFA;
}

.faq-item-fg.active .faq-question-fg {
    background-color: #FFF5F0;
}

.faq-question-text-fg {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
    flex: 1;
}

.faq-icon-fg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #EA5A0B;
    transition: transform 0.3s ease;
}

.faq-item-fg.active .faq-icon-fg {
    transform: rotate(180deg);
}

.faq-answer-fg {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item-fg.active .faq-answer-fg {
    max-height: 500px;
}

.faq-answer-content-fg {
    padding: 24px 28px 24px 28px;
}

.faq-answer-content-fg p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
    margin: 0;
}

.faq-show-more-btn-fg {
    display: block;
    margin: 30px auto 0 auto;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #000;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-show-more-btn-fg:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   BLOCKS (blocks.css)
   ========================================================================== */
.faq-block {
    background: #FFFFFF;
    padding: 60px 0px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-block-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    color: #000000;
    text-align: center;
    margin: 0 0 40px 0;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #FFFFFF;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #EA5A0B;
}

.faq-item.active {
    border-color: #EA5A0B;
    box-shadow: 0 4px 12px rgba(234, 90, 11, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
    text-align: left;
}

.faq-question:hover {
    color: #EA5A0B;
}

.faq-item.active .faq-question {
    color: #EA5A0B;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 25px 25px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.toc-block {
    border-radius: 30px;
}

.toc-style-box .toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toc-header {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.toc-title {
    font-weight: 700;
    font-size: 20px;
    color: #000000;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: decimal;
    font-size: 14px;
}

.toc-link {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.toc-link:hover,
.toc-link.active {
    color: #EA5A0B;
}


/* ==========================================================================
   MODAL (modal.css)
   ========================================================================== */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    background: transparent;
    border: none;
}

.modal-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 12px 0;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 30px 0;
}

.form-group-modal {
    margin-bottom: 20px;
}

.form-group-modal label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #000000;
    margin-bottom: 8px;
}

.form-group-modal input,
.form-group-modal select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.form-checkbox-modal{
    margin-bottom: 20px;
}

.modal-submit-btn {
    width: 100%;
    padding: 16px 30px;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    background: #000000;
    border-radius: 53px;
    cursor: pointer;
    text-align: center;
    border: none;
}

.modal-submit-btn:hover {
    background: #EA5A0B;
}

/* ==========================================================================
   RESPONSIVE (FOR DEFERRED CONTENT)
   NOTE: Section-specific responsive → per-page sections-*.css files.
   Footer responsive → responsive-shared.css. Contact responsive → contact-shared.css.
   Only FAQ, blog-cards, and modal responsive remain here.
   ========================================================================== */

@media (max-width: 768px) {
    .faq-section-fg {
        padding: 60px 20px;
    }

    .faq-main-heading-fg {
        font-size: 28px;
    }

    .faq-question-fg {
        padding: 18px 20px;
    }

    .faq-answer-content-fg {
        padding: 0 20px 18px 20px;
    }

    .faq-block {
        padding: 40px 0px;
    }

    .faq-block-title {
        font-size: 28px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }

    .modal-overlay {
        padding-top: 40px;
    }

    .modal-container {
        padding: 30px 20px;
        margin: 0;
    }

    .modal-title {
        font-size: 24px;
    }

    /* .footer-content + .footer-container → in responsive-shared.css (canonical) */
    /* .reports-box + .mission-content → in sections-front.css (canonical) */
    /* .contact-container + .contact-form-wrapper → in contact-shared.css (canonical) */
}