/*
 * warsztat-dziekuje.css
 * Minimalna strona potwierdzenia zapisu na warsztat.
 */

.thankyou-main {
    min-height: 72vh;
    padding: 76px 0 80px;
    position: relative;
    z-index: 2;
}

.thankyou-shell {
    max-width: 1040px;
}

.thankyou-main h1,
.thankyou-main h2,
.thankyou-main p,
.thankyou-main a,
.thankyou-main span,
.thankyou-main strong,
.thankyou-main li {
    letter-spacing: 0;
}

.thankyou-hero {
    max-width: 760px;
    margin: 0 auto 36px;
    padding: 0;
    text-align: center;
}

.ty-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.ty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text-faint);
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.ty-badge-ok {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

.thankyou-hero h1 {
    max-width: none;
    margin: 0 auto 18px;
    font-size: clamp(2.25rem, 5vw, 4.35rem);
    font-weight: 500;
    line-height: 1.02;
    text-wrap: balance;
}

.thankyou-hero p {
    margin: 0 auto;
    max-width: 62ch;
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--text-dim);
    text-wrap: balance;
}

.ty-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 760px;
    margin: 0 auto 16px;
    padding: 18px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ty-event-date span,
.ty-event-date small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
}

.ty-event-date strong {
    display: block;
    margin: 3px 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.ty-countdown {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ty-countdown .countdown-header {
    margin-bottom: 7px;
    text-align: right;
}

.ty-countdown .countdown-timer {
    justify-content: flex-end;
    gap: 5px;
}

.ty-countdown .countdown-unit {
    min-width: 0;
    padding: 5px 8px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: var(--bg-elev-2);
    border-radius: 8px;
}

.ty-countdown .countdown-number {
    display: inline;
    font-size: 0.92rem;
    font-weight: 700;
}

.ty-countdown .countdown-label {
    font-size: 0.62rem;
}

.ty-calendar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 760px;
    margin: 0 auto 16px;
    padding: 22px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ty-calendar-card .ty-panel-label {
    margin-bottom: 10px;
}

.ty-calendar-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    font-weight: 650;
    line-height: 1.14;
}

.ty-calendar-card p {
    margin: 0;
    max-width: 52ch;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ty-calendar-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
}

.ty-calendar-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: var(--text-inverse);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
}

.ty-calendar-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.thankyou-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 16px;
    align-items: stretch;
}

.ty-panel {
    min-width: 0;
    padding: 28px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ty-panel-label {
    display: inline-flex;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--accent);
}

.ty-panel h2 {
    margin: 0 0 22px;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 600;
    line-height: 1.12;
}

.ty-steps,
.ty-starter-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ty-steps {
    list-style: none;
}

.ty-steps li,
.ty-starter-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ty-steps li > span,
.ty-starter-list > div > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 10px;
}

.ty-starter-list > div > span {
    color: var(--ok);
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.22);
}

.ty-steps p,
.ty-starter-list p {
    margin: 0;
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.ty-steps strong,
.ty-starter-list strong {
    color: var(--text);
    font-weight: 650;
}

.ty-starter {
    background: var(--bg-elev-1);
    border-color: var(--accent-line);
}

.ty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ty-actions .btn {
    min-height: 44px;
    justify-content: center;
    letter-spacing: 0;
}

@media (max-width: 860px) {
    .thankyou-main {
        padding: 60px 0 72px;
    }

    .thankyou-shell {
        max-width: 680px;
    }

    .thankyou-hero {
        margin-bottom: 26px;
        text-align: left;
    }

    .ty-badges {
        justify-content: flex-start;
    }

    .thankyou-hero h1,
    .thankyou-hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .ty-event-card {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .ty-calendar-card {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .ty-calendar-actions {
        min-width: 0;
    }

    .ty-countdown .countdown-header {
        text-align: left;
    }

    .thankyou-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .thankyou-main {
        padding: 46px 0 58px;
    }

    .thankyou-hero h1 {
        max-width: none;
        font-size: clamp(2.05rem, 10vw, 2.55rem);
    }

    .thankyou-hero p {
        font-size: 1rem;
    }

    .ty-panel {
        padding: 20px;
    }

    .ty-event-card {
        padding: 16px;
    }

    .ty-countdown .countdown-timer {
        width: 100%;
        justify-content: flex-start;
    }

    .ty-countdown .countdown-unit {
        flex: 0 1 auto;
    }

    .ty-steps li,
    .ty-starter-list > div {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    .ty-steps li > span,
    .ty-starter-list > div > span {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .ty-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ty-actions .btn {
        width: 100%;
    }
}
