/*
 Theme Name:   Astra Child
 Template:     astra
 Version:      2.0.0
*/

:root {
    /* v3 palette */
    --bg-body: #F7F9FB;
    --bg-card: #FFFFFF;
    --bg-element: #F0F5F3;
    --bg-border: #E4E9ED;
    --text-heading: #1C2B33;
    --text-body: #1C2B33;
    --text-muted: #8B99A4;
    --text-sec: #5A6B78;
    --text-light: #8B99A4;
    --accent: #1B7A6E;
    --accent-hover: #15635A;
    --accent-light: #E6F5F2;
    --accent-muted: rgba(27,122,110,0.08);
    --accent-ring: rgba(27,122,110,0.18);
    --bg-header: #ffffff;
    --bg-footer: #1C2B33;
    --border-light: #EEF1F4;
    --border-hover: #C8CFD8;
    --dark-soft: #2A3F4D;
    --cta-text: #ffffff;
    --cta-btn-bg: #ffffff;
    --cta-btn-text: #1B7A6E;
    --logo-filter: none;
    --table-header-bg: #E4E9ED;
    --separator-color: #E4E9ED;
    --hero-gradient: linear-gradient(135deg, #1C2B33 0%, #1A3A3A 60%, #1B7A6E 100%);
    --cta-gradient: linear-gradient(135deg, #1C2B33 0%, #1B7A6E 100%);
    --error: #D03838;
    --error-bg: #FFEBEE;
    --error-ring: rgba(208,56,56,0.15);
    --success: #22875A;
    --success-bg: #E8F5E9;

    /* Radius tokens */
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadow tokens */
    --shadow-light: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.04);
    --shadow-large: 0 8px 40px rgba(0,0,0,0.08);

    /* Astra palette overrides */
    --ast-global-color-0: #1B7A6E;
    --ast-global-color-1: #15635A;
    --ast-global-color-2: #1C2B33;
    --ast-global-color-3: #1C2B33;
    --ast-global-color-4: #FFFFFF;
    --ast-global-color-5: #F7F9FB;
    --ast-global-color-6: #F0F5F3;
    --ast-global-color-7: #E4E9ED;
    --ast-global-color-8: #8B99A4;
}

/* ===== GLOBAL STYLES ===== */
body,
.ast-separate-container,
.ast-plain-container {
    background-color: var(--bg-body) !important;
    color: var(--text-body) !important;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    line-height: 1.2;
}

a:not(.wp-block-button__link) {
    color: var(--accent) !important;
}

a:hover:not(.wp-block-button__link) {
    color: var(--accent-hover) !important;
}

/* Cover blocks control their own text colors */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4,
.wp-block-cover h5,
.wp-block-cover h6,
.wp-block-cover p {
    color: inherit !important;
}

/* Separator */
.wp-block-separator {
    border-color: var(--separator-color) !important;
    color: var(--separator-color) !important;
}

/* ===== LOGO ===== */
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: var(--logo-filter);
}

.ast-site-title-wrap {
    display: flex !important;
    align-items: center;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    flex-shrink: 0;
}

.site-header.header-scrolled .site-logo-icon {
    width: 26px;
    height: 26px;
}

/* ===== STICKY HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bg-border);
}

.site-header .main-header-bar {
    transition: padding 0.3s ease;
}

.site-header.header-scrolled .main-header-bar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.site-header.header-scrolled .custom-logo-link img {
    max-height: 40px;
}

/* ===== HEADER / FOOTER (ASTRA OVERRIDES) ===== */
.main-header-bar,
.ast-primary-header-bar {
    background-color: var(--bg-header) !important;
}

.main-header-bar .site-title a,
.ast-site-identity .site-title a {
    color: var(--text-heading) !important;
}

.main-navigation .main-header-menu > .menu-item > a {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.main-navigation .main-header-menu > .menu-item > a:hover {
    color: var(--accent) !important;
}

/* No active state highlighting — all items stay muted */
.main-navigation .main-header-menu > .current-menu-item > a,
.main-navigation .main-header-menu > .current-menu-ancestor > a,
.main-navigation .main-header-menu > .current_page_item > a {
    color: var(--text-muted) !important;
}

/* Remove focus outline / box on menu items */
.main-navigation .main-header-menu > .menu-item > a:focus,
.main-navigation .main-header-menu > .menu-item > a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Astra toggle/submenu focus box */
.ast-header-break-point .main-header-menu .menu-item > a:focus,
.main-navigation a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* CTA button in menu */
.main-navigation .main-header-menu > .cta-menu-btn > a {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.45rem 1.25rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    transition: all 0.25s ease;
}

.main-navigation .main-header-menu > .cta-menu-btn > a:hover {
    background: var(--accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.site-footer,
.ast-small-footer {
    background-color: var(--bg-footer) !important;
    color: var(--text-light) !important;
}

.site-footer a {
    color: var(--accent) !important;
}

/* ===== CUSTOM FOOTER ===== */
.bo-footer {
    padding: 1.2rem 2rem;
    text-align: center;
}

.bo-footer-text {
    color: var(--text-light);
    font-size: 0.85rem;
}

.bo-footer-legal {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

/* Logo UE na podstronie /dofinansowanie-ue/ — pelne skalowanie */
.eu-logo-figure {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.eu-logo-figure img {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== EU FUNDING BAR (EDIH re_d — wymog ŁSSE) ===== */
.eu-funding-bar {
    width: 100%;
    background: var(--bg-element);
    border-top: 1px solid var(--bg-border);
    padding: 1.25rem 1.5rem;
    text-align: center;
    line-height: 0;
}

.eu-funding-bar a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.eu-funding-bar a:hover,
.eu-funding-bar a:focus-visible {
    opacity: 0.85;
}

.eu-funding-bar img {
    max-width: 700px;
    width: 100%;
    height: auto;
    display: inline-block;
}

@media (max-width: 768px) {
    .eu-funding-bar {
        padding: 0.9rem 1rem;
    }
    .eu-funding-bar img {
        max-width: 100%;
    }
}

/* Remove gap between last full-width section and footer */
.site-main > article {
    margin-bottom: 0 !important;
}

.entry-content > .alignfull:last-child {
    margin-bottom: 0 !important;
}

.ast-plain-container .site-content .ast-container {
    padding-bottom: 0 !important;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-bottom: 0 !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}

.hero-section .wp-block-cover__background {
    background-color: rgba(26, 26, 26, 0.8) !important;
    z-index: 1;
}

.hero-section .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.wp-block-cover.hero-section h1,
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.hero-section h1 .hero-price {
    color: #7CD4C0 !important;
}

.wp-block-cover.hero-section p,
.hero-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7;
}

/* Hero buttons: respect inline colors (white bg + accent text, outline white) */
.hero-section .wp-block-button__link {
    transition: all 0.25s ease;
}

.hero-section .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}

/* Hero floating badge */
.hero-floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 24px;
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
}

.hero-floating-badge__icon {
    background: var(--accent-light);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    font-size: 1.4rem;
}

.hero-floating-badge__label {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    font-weight: 500;
}

.hero-floating-badge__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading) !important;
}

/* Hero image */
.hero-image-wrap {
    position: relative;
    align-self: end;
}

.hero-image-wrap img {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    height: 460px;
    object-fit: cover;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.3);
}

/* ===== PAGE SECTIONS ===== */
.is-style-page-section h2 {
    color: var(--text-heading);
    margin-bottom: 1rem;
}

/* Section badge (reusable) */
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent) !important;
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}

/* ===== STATS ROW ===== */
.stats-row .wp-block-column {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent) !important;
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-sec) !important;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== HOW IT WORKS STEPS (v3: list layout) ===== */
.v2-step-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.v2-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Source Sans 3', sans-serif;
}

.v2-step-item > .wp-block-group {
    gap: 2px !important;
}

.v2-step-item h3 {
    font-size: 1.125rem !important;
    margin-bottom: 4px !important;
}

.v2-step-item p {
    color: var(--text-sec) !important;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Keep old step-number for backward compat */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.steps-grid .wp-block-column {
    text-align: center;
    position: relative;
}

/* ===== SERVICE CARDS ===== */
.is-style-card {
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.is-style-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.is-style-card h3 {
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.is-style-card p {
    color: var(--text-sec);
}

/* ===== PRICING CARDS ===== */
.pricing-cards .is-style-card {
    text-align: center;
    position: relative;
}

.pricing-cards .wp-block-button__link {
    width: 100%;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff !important;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
}

.pricing-card--popular {
    border: 2px solid var(--accent) !important;
}

.price-tag {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--accent) !important;
    margin: 1rem 0 0.25rem;
    display: block;
}

.price-unit {
    font-size: 1.125rem;
    color: var(--text-muted) !important;
    margin-left: 4px;
}

.price-info {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.pricing-cards.cards-grid {
    justify-content: center !important;
}

.pricing-cards.cards-grid > .wp-block-column {
    flex-basis: calc(33.333% - 1rem) !important;
}

.pricing-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== NEED CERT SECTION ===== */
.need-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.need-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.need-item > .wp-block-group {
    gap: 2px !important;
}

.need-item h3 {
    font-size: 1.0625rem !important;
    margin-bottom: 3px !important;
}

.need-item p {
    color: var(--text-sec) !important;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-us-cards.cards-grid > .wp-block-column {
    flex-basis: calc(33.333% - 1rem) !important;
}

.contact-card h3 {
    font-size: 1.0625rem !important;
    margin-bottom: 0.625rem !important;
}

.contact-card p {
    color: var(--text-sec) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* ===== CTA SECTION ===== */
.is-style-cta-section {
    background: var(--cta-gradient) !important;
}

.is-style-cta-section h2 {
    color: var(--cta-text) !important;
    margin-bottom: 1rem;
}

.is-style-cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.is-style-cta-section .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--cta-btn-bg) !important;
    color: var(--cta-btn-text) !important;
}

.is-style-cta-section .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--bg-element);
    color: var(--accent-hover) !important;
}

.is-style-cta-section .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: #ffffff !important;
}

.is-style-cta-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* ===== OPENING HOURS TABLE ===== */
.opening-hours table {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours th,
.opening-hours td {
    border: 1px solid var(--bg-border);
    padding: 0.6rem 1rem;
    text-align: left;
    color: var(--text-body);
}

.opening-hours th {
    background-color: var(--table-header-bg);
    font-weight: 600;
    color: var(--text-heading);
}

/* ===== CONTACT INFO ===== */
.contact-info p {
    line-height: 1.8;
    color: var(--text-body);
}

.contact-info a {
    color: var(--accent);
}

.contact-info a:hover {
    color: var(--accent-hover);
}

/* ===== 4-COLUMN CARDS GRID ===== */
.cards-grid {
    flex-wrap: wrap !important;
}

.cards-grid > .wp-block-column {
    flex-basis: calc(50% - 1rem) !important;
    flex-grow: 0 !important;
}

/* ===== FAQ (core/details) ===== */
.wp-block-details {
    border: 1px solid var(--bg-border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 0.625rem;
    background: var(--bg-card);
    transition: border-color 0.25s ease;
    overflow: hidden;
}

.wp-block-details[open] {
    border-color: var(--accent);
}

.wp-block-details summary {
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    font-size: 0.97rem;
    line-height: 1.5;
}

.wp-block-details summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.wp-block-details[open] summary::after {
    content: '−';
    background: var(--accent);
    color: #fff;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details > :not(summary) {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-sec);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* ===== ORDER FORM ===== */
.cert-order-form-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 0;
}

/* Progress bar */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: var(--bg-border);
    z-index: 0;
}

.progress-bar-fill {
    position: absolute;
    top: 18px;
    left: calc(100% / 12);
    height: 2px;
    background: var(--accent);
    z-index: 1;
    transition: width 0.3s ease;
}

.step-indicator-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    flex: 1;
}

.step-indicator__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step-indicator-wrap:has(.step-indicator.active) .step-indicator__label,
.step-indicator-wrap:has(.step-indicator.completed) .step-indicator__label {
    color: var(--accent);
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-indicator.active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted);
}

.step-indicator.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* Draft dialog */
.cert-draft-dialog {
    background: var(--bg-element);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-draft-dialog__icon {
    color: var(--accent);
    flex-shrink: 0;
}

.cert-draft-dialog p {
    flex: 1;
    margin: 0;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.cert-draft-dialog__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Step badge */
.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent) !important;
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}

/* Step titles */
.form-step__title {
    margin-bottom: 0.5rem;
}

.form-step__desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Property type selection cards */
.property-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.property-type-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

.property-type-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card);
}

.property-type-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 4px var(--accent-muted);
}

.property-type-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-element);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--accent);
}

.property-type-card__icon svg {
    width: 24px;
    height: 24px;
}

.property-type-card h3 {
    font-size: 1rem;
    margin: 0.75rem 0 0.5rem;
}

.property-type-card__price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent) !important;
    margin: 0.5rem 0 0.25rem;
}

.property-type-card__info {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    margin: 0;
}

.property-type-card--contact {
    border-style: dashed;
}

/* Budynek contact section */
.budynek-contact {
    background: var(--bg-element);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.budynek-contact h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.budynek-contact__methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.budynek-contact__methods a.btn-next {
    color: #ffffff !important;
    text-decoration: none;
}

/* Form fields */
.cert-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.cert-field-group__title {
    font-size: 1rem;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-border);
}

.cert-field {
    margin-bottom: 1.25rem;
    width: 100%;
}

.cert-field--half {
    width: calc(50% - 0.625rem);
}

.cert-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.cert-field .required {
    color: var(--accent);
}

.cert-field input,
.cert-field select,
.cert-field textarea {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    border: 1.5px solid var(--bg-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-body);
    background: var(--bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.cert-field textarea {
    height: 120px;
    padding: 1rem;
    resize: vertical;
}

.cert-field input:focus,
.cert-field select:focus,
.cert-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.cert-field .field-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px var(--error-ring) !important;
}

.cert-field__error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
    min-height: 0;
}

/* Choices.js overrides */
.cert-field .choices {
    margin-bottom: 0;
}

.cert-field .choices__inner,
.cert-field .choices[data-type*="select-one"] .choices__inner {
    padding: 0 1rem;
    height: 52px;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--bg-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-body);
    background: var(--bg-card);
    min-height: auto;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-field .choices__list--single {
    padding: 0;
}

.cert-field .choices__list--single .choices__item--selectable {
    padding: 0;
}

.cert-field .choices[data-type*="select-one"]::after {
    border-color: var(--text-muted) transparent transparent;
    right: 14px;
    margin-top: -1.5px;
}

.cert-field .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--accent);
    margin-top: -5px;
}

.cert-field .choices.is-open .choices__inner,
.cert-field .choices.is-focused .choices__inner {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.cert-field .choices.field-error .choices__inner {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px var(--error-ring) !important;
}

.cert-field .choices__list--dropdown,
.cert-field .choices__list[aria-expanded] {
    border: 1.5px solid var(--bg-border);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    margin-top: 4px;
    z-index: 100;
    word-break: break-word;
}

.cert-field .choices__list--dropdown .choices__item,
.cert-field .choices__list[aria-expanded] .choices__item {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.cert-field .choices__list--dropdown .choices__item--selectable.is-highlighted,
.cert-field .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: var(--accent-light);
    color: var(--accent);
}

.cert-field .choices__list--dropdown .choices__item--selectable.is-selected {
    color: var(--accent);
    font-weight: 500;
}

/* Form navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.5;
}

.btn-next,
.btn-submit,
a.btn-next,
a.btn-submit {
    background: var(--accent);
    color: #ffffff !important;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-prev {
    background: var(--bg-body);
    color: var(--text-sec) !important;
    border: 2px solid var(--bg-border);
}

.btn-prev:hover {
    background: var(--bg-element);
}

/* File upload */
.file-upload-area {
    border: 2px dashed var(--bg-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-upload-area__text {
    color: var(--text-body);
    margin: 0 0 0.25rem;
}

.file-upload-area__hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.file-upload-area__filename {
    font-weight: 500;
    color: var(--text-heading);
}

.file-upload-area__filename--success {
    color: var(--success);
}

.file-upload-area__uploading {
    color: var(--accent);
    font-size: 0.85rem;
}

.file-upload-area__error {
    color: var(--error);
    font-size: 0.85rem;
}

.file-upload-area__remove {
    margin-top: 0.5rem;
    background: none;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
}

.file-upload-area__remove:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Summary */
.cert-summary {
    background: var(--bg-element);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.cert-summary__group {
    margin-bottom: 1.5rem;
}

.cert-summary__group:last-child {
    margin-bottom: 0;
}

.cert-summary__group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-border);
}

.cert-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.cert-summary__label {
    color: var(--text-muted);
}

.cert-summary__value {
    color: var(--text-heading);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.cert-summary__total {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin-top: 1rem;
    font-size: 1rem;
    border-top: 2px solid var(--accent);
}

.cert-summary__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sec);
}

.cert-summary__total-row--final {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    font-size: 1.2rem;
    color: var(--text-heading);
}

.cert-summary__total-row--final strong {
    font-size: 1.5rem;
    color: var(--accent) !important;
}

/* Wybor formy dostawy (papier) */
.cert-delivery-options {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-element);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius);
}

.cert-delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.cert-delivery-option input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.cert-delivery-option__text {
    font-size: 0.95rem;
    color: var(--text-heading);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cert-delivery-option__desc {
    font-size: 0.85rem;
    color: var(--text-sec);
    font-weight: 400;
}

/* Consent checkboxes */
.cert-consents {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}

.cert-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cert-consent__text {
    font-size: 0.85rem;
    color: var(--text-sec);
    line-height: 1.5;
}

.cert-consent__more {
    background: none !important;
    border: none !important;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.cert-consent__more:hover {
    color: var(--accent-hover);
    background: none !important;
}

.cert-consent__full {
    margin-left: calc(18px + 0.625rem);
    background: var(--bg-element);
    border-radius: 8px;
    padding: 0.875rem 1rem;
}

.cert-consent__full p {
    font-size: 0.8rem;
    color: var(--text-sec);
    line-height: 1.6;
    margin: 0;
}

.cert-consent.field-error .cert-consent__text {
    color: var(--error);
}

/* Submit error */
.cert-submit-error {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===== THANK YOU PAGE ===== */
.cert-thankyou {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0;
}

.cert-thankyou__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.cert-thankyou h1 {
    font-size: clamp(1.625rem, 4vw, 2.25rem);
    margin-bottom: 0.875rem;
}

.cert-thankyou p {
    color: var(--text-sec) !important;
    font-size: 1rem;
    line-height: 1.7;
}

.cert-thankyou__order-number {
    font-weight: 700;
    color: var(--text-heading) !important;
}

.cert-thankyou__steps {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.cert-thankyou__steps h3 {
    font-size: 1.2rem;
    margin-bottom: 1.125rem;
}

.cert-thankyou__step {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.cert-thankyou__step:last-child {
    margin-bottom: 0;
}

.cert-thankyou__step-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.cert-thankyou__step-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent) !important;
}

.cert-thankyou__step-text {
    font-size: 0.9rem;
    color: var(--text-sec) !important;
}

.cert-thankyou__back {
    margin-top: 1.75rem;
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce .quantity,
.woocommerce .product_meta,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
    display: none !important;
}

.woocommerce-checkout #payment {
    background: var(--bg-card) !important;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.woocommerce #place_order {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    transition: all 0.25s ease !important;
}

.woocommerce #place_order:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select {
    border: 1.5px solid var(--bg-border) !important;
    border-radius: 8px !important;
    padding: 0.7rem 1rem !important;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-muted) !important;
}

/* Checkout order summary */
.woocommerce-checkout-review-order-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

/* Checkout review order wrapper */
#order_review.woocommerce-checkout-review-order {
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem;
}

/* Payment method accent */
.woocommerce-checkout #payment .payment_methods li.wc_payment_method.payment_method_bacs {
    border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards-grid > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
    }

    .pricing-cards.cards-grid > .wp-block-column,
    .why-us-cards.cards-grid > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
    }

    /* Hero: hide image column on tablet */
    .hero-section .wp-block-columns {
        flex-direction: column;
    }

    .hero-image-wrap {
        display: none;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    /* Steps: hide image on tablet */
    .steps-image-col {
        display: none;
    }

    /* Need cert: hide image */
    .need-image-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 220px !important;
    }

    .is-style-page-section {
        padding: 2.5rem 1rem !important;
    }

    .is-style-cta-section {
        padding: 2.5rem 1rem !important;
    }

    .is-style-card {
        padding: 1.5rem 1rem !important;
    }

    /* Order form responsive */
    .cert-order-form-wrapper {
        padding: 1rem;
        margin: 1rem auto;
    }

    .property-type-cards {
        grid-template-columns: 1fr;
    }

    .cert-field--half {
        width: 100%;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        text-align: center;
    }

    .cert-draft-dialog {
        flex-direction: column;
        text-align: center;
    }

    .cert-draft-dialog__buttons {
        flex-direction: column;
        width: 100%;
    }

    .step-indicator__label {
        font-size: 0.65rem;
    }

    .budynek-contact__methods {
        flex-direction: column;
        align-items: center;
    }

    .cert-summary__row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .cert-summary__value {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .cards-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .stats-row {
        flex-wrap: wrap !important;
    }

    .stats-row > .wp-block-column {
        flex-basis: calc(50% - 0.5rem) !important;
        flex-grow: 0 !important;
    }
}

/* ===== CALLBACK WIDGET ===== */
.callback-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}

.callback-widget__tab {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 10px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius) 0 0 var(--radius);
    transition: background 0.2s, right 0.3s ease;
    box-shadow: var(--shadow-light);
}

.callback-widget__tab:hover {
    background: var(--accent-hover);
}

.callback-widget__panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    background: #fff;
    width: 280px;
    padding: 2rem 1.5rem;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow-large);
    transition: transform 0.3s ease;
}

.callback-widget.is-open .callback-widget__tab {
    right: 280px;
}

.callback-widget.is-open .callback-widget__panel {
    transform: translateY(-50%) translateX(0);
}

.callback-widget__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 0 !important;
}

.callback-widget__close:hover,
.callback-widget__close:focus {
    color: var(--text-heading);
    background: transparent !important;
}

.callback-widget__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.callback-widget__desc {
    font-size: 0.875rem;
    color: var(--text-sec);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.callback-widget__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--bg-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-heading);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.callback-widget__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.callback-widget__submit {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.callback-widget__submit:hover {
    background: var(--accent-hover);
}

.callback-widget__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.callback-widget__success {
    text-align: center;
}

.callback-widget__success p {
    font-size: 0.9rem;
    color: var(--text-heading);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.callback-widget__check {
    display: inline-block;
}

@media (max-width: 768px) {
    .callback-widget {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
    }

    .callback-widget__tab {
        position: fixed;
        left: 50%;
        bottom: 16px;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        writing-mode: horizontal-tb;
        border-radius: 50px;
        padding: 12px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 9999;
    }

    .callback-widget.is-open .callback-widget__tab {
        display: none;
    }

    .callback-widget__panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        transform: translateY(100%);
        border-radius: 20px 20px 0 0;
        padding: 2rem 1.5rem 2.5rem;
        box-sizing: border-box;
    }

    .callback-widget.is-open .callback-widget__panel {
        transform: translateY(0);
    }
}

/* ===== WOOCOMMERCE BUTTON OVERRIDES ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    color: #ffffff !important;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--text-heading);
    border-top: 3px solid var(--accent);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    animation: cookieSlideUp 0.35s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent__text {
    color: #ffffffcc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__text a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
    color: #ffffff;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    background: var(--accent);
    color: #ffffff;
}

.cookie-consent__btn--accept:hover {
    background: var(--accent-hover);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: #ffffffbb;
    border: 1px solid #ffffff33;
}

.cookie-consent__btn--reject:hover {
    background: #ffffff11;
    color: #ffffff;
}

@media (max-width: 600px) {
    .cookie-consent__inner {
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: 1rem;
        text-align: center;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }
}
