/* =============================================================================
   F-Tech Kalendarz - Frontend
   Styl: japoński minimalizm, paleta EF-Finanse #90947B / #BBB29D / #D8D6C9
   Font: Libre Baskerville (display) + Figtree (body)
   ============================================================================= */

.ftech-kal {
    --kal-akcent: #90947B;
    --kal-akcent-hover: #7B7E66;
    --kal-akcent-jasny: #BBB29D;
    --kal-akcent-mocny: #3A3D2F;
    --kal-pergamin: #EDECE6;
    --kal-pergamin-2: #E4E2DA;
    --kal-pergamin-3: #D8D6C9;
    --kal-bialy: #FFFFFF;
    --kal-cien-tlo: #FAF9F4;
    --kal-atrament: #2B2A24;
    --kal-atrament-2: #58564E;
    --kal-stonowany: #8A887F;
    --kal-blad: #B85450;
    --kal-sukces: #6B8E5A;
    --kal-linia: rgba(58, 61, 47, 0.10);
    --kal-linia-mocna: rgba(58, 61, 47, 0.20);
    --kal-cien-karta: 0 1px 3px rgba(58, 61, 47, 0.04), 0 8px 28px rgba(58, 61, 47, 0.06);
    --kal-cien-karta-hover: 0 4px 12px rgba(58, 61, 47, 0.06), 0 18px 48px rgba(58, 61, 47, 0.10);

    --kal-font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --kal-font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --kal-ease: cubic-bezier(0.25, 0, 0.25, 1);

    font-family: var(--kal-font-sans);
    color: var(--kal-atrament);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Nadpisanie Astra block layout - flex on entry-content children */
    display: block !important;
}

.ftech-kal *,
.ftech-kal *::before,
.ftech-kal *::after {
    box-sizing: border-box;
}

.ftech-kal__inner {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

/* Override Astry */
.ftech-kal p,
.ftech-kal h1,
.ftech-kal h2,
.ftech-kal h3,
.ftech-kal h4 {
    margin: 0;
}
.ftech-kal a {
    color: inherit;
    text-decoration: none;
}
.ftech-kal button {
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
}

/* Override Astra: nasze karty MAJĄ własne tło. Reset button powyżej
   wygrywałby z definicją karty (specyficzność 0,1,1 > 0,1,0),
   dlatego tu chain z .ftech-kal + !important. */
.ftech-kal .ftech-kal__type-card,
.ftech-kal .ftech-kal__format-card {
    background: var(--kal-bialy) !important;
}

/* Override Astra block layout - block constraints + flex z entry-content */
.ftech-kal,
.ftech-kal__inner,
.ftech-kal__inner > *,
.ftech-kal__panel,
.ftech-kal__panel > * {
    max-width: none;
}

.ftech-kal__inner {
    max-width: 1080px !important;
}

/* Astra wstrzykuje flex/grid layouty - wymuszamy block dla głównego kontenera */
.ftech-kal {
    display: block;
}

/* =============================================================
   HEADER - wycentrowany, z generous spacingiem
   Padding-top większy żeby menu sticky nie zachodziło na napis
   ============================================================= */
.ftech-kal__header {
    text-align: center !important;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: clamp(3rem, 7vw, 5rem);
    padding-top: clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ftech-kal__eyebrow {
    display: inline-block;
    font-family: var(--kal-font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--kal-akcent);
    margin-bottom: 1.75rem;
    position: relative;
    padding: 0 2rem;
    text-align: center;
}

.ftech-kal__eyebrow::before,
.ftech-kal__eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.25rem;
    height: 1px;
    background: var(--kal-akcent);
    opacity: 0.4;
}

.ftech-kal__eyebrow::before { left: 0; }
.ftech-kal__eyebrow::after  { right: 0; }

.ftech-kal__title {
    font-family: var(--kal-font-serif) !important;
    font-size: clamp(1.85rem, 5vw, 3.25rem) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--kal-akcent-mocny) !important;
    letter-spacing: -0.015em;
    margin: 0 0 1.5rem !important;
    text-align: center !important;
    width: 100%;
    max-width: 100%;
}

.ftech-kal__intro {
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    color: var(--kal-atrament-2) !important;
    text-align: center !important;
}

/* =============================================================
   STEPS (krok 1-4)
   ============================================================= */
.ftech-kal__steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    list-style: none !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    max-width: 800px;
    width: 100%;
    position: relative;
}

.ftech-kal__steps li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ftech-kal__steps::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--kal-linia-mocna);
    z-index: 0;
}

.ftech-kal__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ftech-kal__step-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kal-pergamin);
    color: var(--kal-stonowany);
    font-family: var(--kal-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--kal-linia-mocna);
    transition: all 0.4s var(--kal-ease);
}

.ftech-kal__step-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--kal-stonowany);
    letter-spacing: 0.04em;
    transition: color 0.3s var(--kal-ease);
}

.ftech-kal__step--active .ftech-kal__step-num {
    background: var(--kal-akcent);
    color: var(--kal-bialy);
    border-color: var(--kal-akcent);
    box-shadow: 0 0 0 6px rgba(144, 148, 123, 0.12);
}

.ftech-kal__step--active .ftech-kal__step-name {
    color: var(--kal-akcent-mocny);
    font-weight: 600;
}

.ftech-kal__step--done .ftech-kal__step-num {
    background: var(--kal-akcent-mocny);
    color: var(--kal-bialy);
    border-color: var(--kal-akcent-mocny);
}

.ftech-kal__step--done .ftech-kal__step-name {
    color: var(--kal-atrament-2);
}

/* =============================================================
   PANEL
   Astra wstrzykuje is-layout-flex z !important na dzieci entry-content,
   dlatego nasze reguły też potrzebują !important + chain z .ftech-kal
   żeby pewnie wygrać.
   ============================================================= */
.ftech-kal .ftech-kal__panel {
    display: none !important;
    width: 100%;
    animation: ftech-kal-fadeIn 0.5s var(--kal-ease);
}

.ftech-kal .ftech-kal__panel--active {
    display: block !important;
}

@keyframes ftech-kal-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ftech-kal__panel-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ftech-kal__panel-title {
    font-family: var(--kal-font-serif) !important;
    font-size: clamp(1.4rem, 3vw, 1.85rem) !important;
    font-weight: 400 !important;
    color: var(--kal-akcent-mocny) !important;
    letter-spacing: -0.005em;
    line-height: 1.3 !important;
    text-align: center !important;
    margin: 0 !important;
}

.ftech-kal__panel-meta {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: var(--kal-atrament-2);
    font-style: italic;
    text-align: center;
}

.ftech-kal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--kal-stonowany);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    transition: all 0.25s var(--kal-ease);
    text-transform: uppercase;
}

.ftech-kal__back:hover {
    color: var(--kal-akcent);
}

.ftech-kal__back:hover svg {
    transform: translateX(-3px);
}

.ftech-kal__back svg {
    transition: transform 0.25s var(--kal-ease);
}

/* =============================================================
   KROK 1: TYPY SPOTKAŃ - kontrastowe karty z głębią
   ============================================================= */
.ftech-kal__types {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 920px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

@media (min-width: 768px) {
    .ftech-kal__types {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.ftech-kal__type-card {
    --type-color: var(--kal-akcent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 2.25rem 2.25rem 2.5rem;
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    text-align: left;
    transition: all 0.4s var(--kal-ease);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

/* Subtelny gradient ozdobny w tle karty */
.ftech-kal__type-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--type-color) 0%, transparent 70%);
    opacity: 0.06;
    transition: opacity 0.4s var(--kal-ease);
    pointer-events: none;
}

/* Lewa pionowa linia akcentu */
.ftech-kal__type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--type-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s var(--kal-ease);
}

.ftech-kal__type-card:hover {
    border-color: var(--type-color);
    box-shadow: var(--kal-cien-karta-hover);
    transform: translateY(-3px);
}

.ftech-kal__type-card:hover::before {
    transform: scaleY(1);
}

.ftech-kal__type-card:hover::after {
    opacity: 0.12;
}

.ftech-kal__type-card.is-selected {
    border-color: var(--type-color);
    background: var(--kal-bialy);
    box-shadow: var(--kal-cien-karta-hover), 0 0 0 2px var(--type-color);
}

.ftech-kal__type-card.is-selected::before {
    transform: scaleY(1);
    width: 3px;
}

.ftech-kal__type-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--type-color);
    position: relative;
    z-index: 1;
}

.ftech-kal__type-duration::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--type-color);
    opacity: 0.7;
}

.ftech-kal__type-name {
    font-family: var(--kal-font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.45rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--kal-akcent-mocny);
    letter-spacing: -0.005em;
    position: relative;
    z-index: 1;
}

.ftech-kal__type-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--kal-atrament-2);
    position: relative;
    z-index: 1;
}

.ftech-kal__type-arrow {
    position: absolute;
    bottom: 1.75rem;
    right: 2.25rem;
    color: var(--kal-stonowany);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s var(--kal-ease);
    z-index: 2;
}

.ftech-kal__type-card:hover .ftech-kal__type-arrow,
.ftech-kal__type-card.is-selected .ftech-kal__type-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--type-color);
}

/* =============================================================
   KROK 2: FORMA SPOTKANIA - dwa kafelki stacjonarne/online
   ============================================================= */
.ftech-kal__format-picker {
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.ftech-kal__format-label {
    font-family: var(--kal-font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--kal-akcent);
    text-align: center;
    margin-bottom: 1.25rem;
}

.ftech-kal__format-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ftech-kal__format-options {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.ftech-kal__format-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2rem 2.25rem;
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia-mocna);
    box-shadow: var(--kal-cien-karta);
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.25, 0, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.ftech-kal__format-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--kal-akcent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.25, 0, 0.25, 1);
}

.ftech-kal__format-card:hover {
    border-color: var(--kal-akcent);
    box-shadow: var(--kal-cien-karta-hover);
    transform: translateY(-3px);
}

.ftech-kal__format-card.is-selected {
    border-color: var(--kal-akcent-mocny);
    background: var(--kal-pergamin);
    box-shadow: var(--kal-cien-karta-hover);
}

.ftech-kal__format-card.is-selected::before {
    transform: scaleY(1);
    transform-origin: top;
}

.ftech-kal__format-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--kal-akcent);
    transition: color 0.35s cubic-bezier(0.25, 0, 0.25, 1);
}

.ftech-kal__format-card.is-selected .ftech-kal__format-icon {
    color: var(--kal-akcent-mocny);
}

.ftech-kal__format-title {
    font-family: var(--kal-font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--kal-akcent-mocny);
    line-height: 1.3;
}

.ftech-kal__format-desc {
    font-size: 0.85rem;
    color: var(--kal-atrament-2);
    line-height: 1.5;
}

/* =============================================================
   KROK 2: KALENDARZ + GODZINY
   ============================================================= */
.ftech-kal__date-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

/* Atrybut hidden MUSI być silniejszy niż display: grid powyżej.
   Bez tego klient widzi pusty kalendarz z napisem "Ładowanie..."
   zanim wybierze formę spotkania. */
.ftech-kal__date-picker[hidden] {
    display: none !important;
}

@media (min-width: 880px) {
    .ftech-kal__date-picker {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 1.75rem;
    }
}

/* Kalendarz */
.ftech-kal__cal {
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ftech-kal__cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--kal-linia);
}

.ftech-kal__cal-month {
    font-family: var(--kal-font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--kal-akcent-mocny);
    letter-spacing: 0.01em;
    text-transform: capitalize;
}

.ftech-kal__cal-nav {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kal-pergamin);
    color: var(--kal-akcent-mocny);
    border-radius: 50%;
    transition: all 0.3s var(--kal-ease);
}

.ftech-kal__cal-nav:hover:not(:disabled) {
    background: var(--kal-akcent);
    color: var(--kal-bialy);
    transform: scale(1.05);
}

.ftech-kal__cal-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ftech-kal__cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ftech-kal__cal-weekdays span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kal-stonowany);
    padding: 0.5rem 0;
}

.ftech-kal__cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-height: 280px;
}

.ftech-kal__cal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: var(--kal-stonowany);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.ftech-kal__cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--kal-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kal-atrament);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.25s var(--kal-ease);
    position: relative;
}

.ftech-kal__cal-day--empty {
    pointer-events: none;
    opacity: 0;
}

.ftech-kal__cal-day--available {
    cursor: pointer;
    background: var(--kal-pergamin);
    border-color: transparent;
}

.ftech-kal__cal-day--available:hover {
    background: var(--kal-pergamin-2);
    border-color: var(--kal-akcent);
    transform: scale(1.08);
}

.ftech-kal__cal-day--selected {
    background: var(--kal-akcent);
    color: var(--kal-bialy);
    border-color: var(--kal-akcent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(144, 148, 123, 0.35);
}

.ftech-kal__cal-day--selected:hover {
    background: var(--kal-akcent-hover);
    border-color: var(--kal-akcent-hover);
    transform: scale(1.08);
}

.ftech-kal__cal-day--blocked,
.ftech-kal__cal-day--past,
.ftech-kal__cal-day--closed,
.ftech-kal__cal-day--full {
    color: var(--kal-pergamin-3);
    cursor: not-allowed;
}

.ftech-kal__cal-day--past {
    text-decoration: line-through;
    text-decoration-color: rgba(58, 61, 47, 0.15);
    text-decoration-thickness: 1px;
}

.ftech-kal__cal-day--blocked {
    color: var(--kal-blad);
    opacity: 0.7;
}

.ftech-kal__cal-day--blocked::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--kal-blad);
    opacity: 0.7;
}

.ftech-kal__cal-day--today {
    font-weight: 700;
}

.ftech-kal__cal-day--today::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--kal-akcent);
}

.ftech-kal__cal-day--selected.ftech-kal__cal-day--today::before {
    background: var(--kal-bialy);
}

.ftech-kal__cal-legend {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--kal-linia);
    flex-wrap: wrap;
}

.ftech-kal__cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--kal-stonowany);
    letter-spacing: 0.04em;
}

.ftech-kal__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ftech-kal__legend-dot--available {
    background: var(--kal-akcent);
}

.ftech-kal__legend-dot--blocked {
    background: var(--kal-pergamin-3);
    border: 1px solid var(--kal-linia-mocna);
}

/* Godziny - osobna karta */
.ftech-kal__times {
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    padding: clamp(1.25rem, 3vw, 2rem);
    min-height: 320px;
    position: relative;
}

.ftech-kal__times-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    color: var(--kal-stonowany);
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.7;
    padding: 2rem 1rem;
}

.ftech-kal__times-empty::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--kal-pergamin);
    display: block;
    margin-bottom: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A887F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-size: 22px;
    background-position: center;
    background-repeat: no-repeat;
}

.ftech-kal__times-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--kal-linia);
}

.ftech-kal__times-day {
    font-family: var(--kal-font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--kal-akcent-mocny);
    margin-bottom: 0.35rem;
    text-transform: capitalize;
    line-height: 1.3;
}

.ftech-kal__times-meta {
    font-size: 0.78rem;
    color: var(--kal-stonowany);
    letter-spacing: 0.04em;
}

.ftech-kal__times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 0.5rem;
}

.ftech-kal__time-btn {
    padding: 0.85rem 0.5rem;
    background: var(--kal-pergamin);
    border: 1px solid transparent;
    font-family: var(--kal-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kal-akcent-mocny);
    letter-spacing: 0.02em;
    transition: all 0.25s var(--kal-ease);
}

.ftech-kal__time-btn:hover {
    border-color: var(--kal-akcent);
    background: var(--kal-pergamin-2);
    transform: translateY(-1px);
}

.ftech-kal__time-btn.is-selected {
    background: var(--kal-akcent);
    color: var(--kal-bialy);
    border-color: var(--kal-akcent);
    box-shadow: 0 2px 8px rgba(144, 148, 123, 0.3);
}

/* =============================================================
   KROK 3: FORMULARZ
   ============================================================= */
.ftech-kal__summary {
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    padding: 1.75rem 2rem 1.75rem 2.25rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    max-width: 720px;
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.ftech-kal__summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--kal-akcent);
}

.ftech-kal__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.ftech-kal__summary-row + .ftech-kal__summary-row {
    padding-top: 1rem;
    border-top: 1px solid var(--kal-linia);
}

.ftech-kal__summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--kal-stonowany);
    font-weight: 600;
}

.ftech-kal__summary-value {
    font-family: var(--kal-font-serif);
    font-size: 1.05rem;
    color: var(--kal-akcent-mocny);
    text-align: right;
}

.ftech-kal__form {
    display: grid;
    gap: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.ftech-kal__field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ftech-kal__field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.ftech-kal__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ftech-kal__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--kal-atrament-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ftech-kal__label em {
    color: var(--kal-akcent);
    font-style: normal;
    font-weight: 700;
}

.ftech-kal__optional {
    font-size: 0.68rem;
    text-transform: none;
    color: var(--kal-stonowany);
    letter-spacing: 0.02em;
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Astra wymusza height:40px, padding:12px 16px, box-shadow i border-radius
   na każdym <input>. Trzeba wymusić nasze style z !important + wyższą
   specyficznością (chain z .ftech-kal) żeby zachować minimalistyczny styl
   japoński (czysta linia underline). */
.ftech-kal .ftech-kal__input {
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    padding: 0.95rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kal-linia-mocna) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--kal-font-sans) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--kal-atrament) !important;
    transition: border-color 0.3s var(--kal-ease);
}

.ftech-kal .ftech-kal__input:focus {
    outline: none !important;
    border-bottom-color: var(--kal-akcent) !important;
    border-bottom-width: 2px !important;
    box-shadow: none !important;
}

.ftech-kal .ftech-kal__input.has-error {
    border-bottom-color: var(--kal-blad) !important;
}

.ftech-kal .ftech-kal__textarea {
    min-height: 110px;
    padding: 1rem 1.15rem !important;
    border: 1px solid var(--kal-linia-mocna) !important;
    background: var(--kal-cien-tlo) !important;
    line-height: 1.65 !important;
    resize: vertical;
}

.ftech-kal .ftech-kal__textarea:focus {
    border-color: var(--kal-akcent) !important;
    background: var(--kal-bialy) !important;
}

.ftech-kal__error {
    display: none;
    font-size: 0.78rem;
    color: var(--kal-blad);
    letter-spacing: 0.02em;
    margin-top: 0.35rem;
}

.ftech-kal__error.is-active {
    display: block;
}

/* =============================================================
   SELECT - z customową strzałką dla spójności wizualnej
   Astra wymusza height: 40px i padding 6px 10px na każdym select,
   przez co tekst się obcina. Trzeba pokonać przez wysoką specyficzność
   i !important. Dotyczy też ftech-kal__input dla spójności.
   ============================================================= */
.ftech-kal__select-wrap {
    position: relative;
    display: block;
}

.ftech-kal .ftech-kal__select.ftech-kal__input {
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    padding: 0.95rem 2.75rem 0.95rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kal-linia-mocna) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--kal-font-sans) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--kal-atrament) !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s var(--kal-ease);
}

.ftech-kal .ftech-kal__select.ftech-kal__input:focus {
    outline: none !important;
    border-bottom-color: var(--kal-akcent) !important;
    border-bottom-width: 2px !important;
    box-shadow: none !important;
}

.ftech-kal__select::-ms-expand {
    display: none;
}

.ftech-kal__select-arrow {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--kal-akcent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ftech-kal .ftech-kal__select.ftech-kal__input:focus ~ .ftech-kal__select-arrow,
.ftech-kal__select:focus + .ftech-kal__select-arrow {
    color: var(--kal-akcent-mocny);
}

/* =============================================================
   RADIO GROUP - karty z opisem zamiast standardowych radio
   ============================================================= */
.ftech-kal__radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .ftech-kal__radio-group {
        grid-template-columns: 1fr 1fr;
    }
}

.ftech-kal__radio {
    display: block;
    cursor: pointer;
    position: relative;
}

.ftech-kal__radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ftech-kal__radio-box {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    background: var(--kal-tlo);
    border: 1px solid var(--kal-linia);
    transition: all 0.35s cubic-bezier(0.25, 0, 0.25, 1);
    height: 100%;
}

.ftech-kal__radio:hover .ftech-kal__radio-box {
    border-color: var(--kal-akcent);
    background: var(--kal-pergamin);
}

.ftech-kal__radio input[type="radio"]:checked + .ftech-kal__radio-box {
    background: var(--kal-pergamin);
    border-color: var(--kal-akcent-mocny);
    box-shadow: inset 3px 0 0 var(--kal-akcent-mocny);
}

.ftech-kal__radio input[type="radio"]:focus-visible + .ftech-kal__radio-box {
    outline: 2px solid var(--kal-akcent);
    outline-offset: 2px;
}

.ftech-kal__radio-title {
    font-family: var(--kal-font-serif);
    font-size: 0.95rem;
    color: var(--kal-akcent-mocny);
    line-height: 1.3;
}

.ftech-kal__radio-desc {
    font-size: 0.78rem;
    color: var(--kal-atrament-2);
    line-height: 1.5;
}

.ftech-kal__consent {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: var(--kal-pergamin);
    border-left: 3px solid var(--kal-akcent);
    margin-top: 0.5rem;
}

.ftech-kal__consent input {
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    accent-color: var(--kal-akcent);
    flex-shrink: 0;
}

.ftech-kal__consent span {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--kal-atrament-2);
}

.ftech-kal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ftech-kal__actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.ftech-kal__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 2.75rem;
    background: var(--kal-akcent-mocny);
    color: var(--kal-bialy);
    font-family: var(--kal-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s var(--kal-ease);
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .ftech-kal__submit {
        width: auto;
    }
}

.ftech-kal__submit:hover {
    background: var(--kal-akcent);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(58, 61, 47, 0.18);
}

.ftech-kal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ftech-kal__submit-arrow {
    display: inline-flex;
    transition: transform 0.3s var(--kal-ease);
}

.ftech-kal__submit:hover .ftech-kal__submit-arrow {
    transform: translateX(4px);
}

.ftech-kal__submit.is-loading .ftech-kal__submit-arrow {
    animation: ftech-kal-spin 0.8s linear infinite;
}

@keyframes ftech-kal-spin {
    to { transform: rotate(360deg); }
}

.ftech-kal__form-error {
    background: #FFF8F8;
    border-left: 3px solid var(--kal-blad);
    padding: 1rem 1.25rem;
    color: var(--kal-blad);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* =============================================================
   KROK 4: SUKCES
   ============================================================= */
.ftech-kal__success {
    text-align: center;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--kal-bialy);
    border: 1px solid var(--kal-linia);
    box-shadow: var(--kal-cien-karta);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.ftech-kal__success::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--kal-akcent) 0%, transparent 70%);
    opacity: 0.06;
    pointer-events: none;
}

.ftech-kal__success-icon {
    color: var(--kal-akcent);
    margin: 0 auto 2rem;
    animation: ftech-kal-pop 0.6s var(--kal-ease);
    position: relative;
    z-index: 1;
}

@keyframes ftech-kal-pop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.ftech-kal__success-title {
    font-family: var(--kal-font-serif);
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 400;
    color: var(--kal-akcent-mocny);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.ftech-kal__success-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--kal-atrament-2);
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.ftech-kal__success-detail {
    font-family: var(--kal-font-serif);
    font-size: 1.05rem;
    color: var(--kal-akcent-mocny);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--kal-pergamin);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.ftech-kal__success-note {
    font-size: 0.82rem;
    color: var(--kal-stonowany);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* =============================================================
   PUSTY STAN
   ============================================================= */
.ftech-kal-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--kal-pergamin);
    color: var(--kal-atrament-2);
    font-family: var(--kal-font-sans);
}

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 767px) {
    .ftech-kal__steps {
        margin-bottom: 2.5rem;
    }

    .ftech-kal__step-name {
        font-size: 0.65rem;
    }

    .ftech-kal__type-card {
        padding: 1.75rem 1.5rem 2rem;
        min-height: auto;
    }

    .ftech-kal__type-arrow {
        bottom: 1.5rem;
        right: 1.75rem;
    }

    .ftech-kal__times-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ftech-kal__summary {
        padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    }

    .ftech-kal__summary-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ftech-kal__step-name {
        display: none;
    }

    .ftech-kal__steps::before {
        top: 19px;
    }

    .ftech-kal__eyebrow {
        padding: 0 1.5rem;
    }

    .ftech-kal__eyebrow::before,
    .ftech-kal__eyebrow::after {
        width: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ftech-kal *,
    .ftech-kal *::before,
    .ftech-kal *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
