/* BRC-2316 — padangų keitimo kampanija (ruduo 2026).
   Page chrome only: hero, benefits, slot picker, prices, thanks card. Form controls keep
   the site contract (.form-input / .form-select / .form-label from main.css + custom.css). */

/* The site .container has no horizontal padding below 640px. */
@media (max-width: 639px) {
    .tyre-change .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.tyre-change .tc-section {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

@media (min-width: 1024px) {
    .tyre-change .tc-section {
        padding-top: 4rem;
    }
}

/* Hero */
.tyre-change .tc-hero {
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .tyre-change .tc-hero {
        padding: 6rem 0;
    }
}

.tyre-change .tc-hero__note {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-style: italic;
}

.tyre-change .tc-hero__cta {
    display: inline-block;
    margin-top: 1.75rem;
}

/* Intro */
.tyre-change .tc-intro {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    text-align: center;
}

.tyre-change .tc-intro p + p {
    margin-top: 1rem;
}

/* Benefit blocks — brand navy panels (.bg-blue-warranty) with a yellow icon. */
.tyre-change .tc-benefits {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 2.5rem -0.625rem 0;
    padding: 0;
}

.tyre-change .tc-benefit {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 0.625rem 1.25rem;
    padding: 1.5rem;
    color: #fff;
}

@media (min-width: 1024px) {
    .tyre-change .tc-benefit {
        width: calc(50% - 1.25rem);
    }
}

.tyre-change .tc-benefit__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-right: 1.25rem;
    border-radius: 9999px;
    background: #eab308;
    color: #1d1c20;
}

.tyre-change .tc-benefit__icon svg {
    width: 28px;
    height: 28px;
}

.tyre-change .tc-benefit__title {
    font-weight: 800;
    font-size: 1.1875rem;
    line-height: 1.35;
}

.tyre-change .tc-benefit__text {
    margin-top: 0.375rem;
    font-weight: 700;
}

.tyre-change .tc-benefit__note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-style: italic;
    opacity: 0.85;
}

/* The site header is position:fixed, so a #registracija jump (hero CTA, validation
   redirects) would park the form title underneath it. */
.tyre-change #registracija {
    scroll-margin-top: 140px;
}

/* Form */
.tyre-change .tc-form {
    max-width: 60rem;
    margin: 0 auto;
}

.tyre-change .tc-radios {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tyre-change .tc-radios label {
    margin-right: 1.5rem;
    cursor: pointer;
}

.tyre-change .tc-radios__label {
    margin: 0 0 0 0.5rem;
    cursor: pointer;
}

/* Slot picker — inline month calendar + hour buttons. */
.tyre-change .tc-picker {
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
}

.tyre-change .tc-picker--error {
    border-color: #e3342f;
}

.tyre-change .tc-picker__hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
}

.tyre-change .tc-picker__hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: rgba(234, 179, 8, 0.18);
    color: #1d1c20;
    margin-bottom: 0.875rem;
}

.tyre-change .tc-picker__hint-icon svg {
    width: 28px;
    height: 28px;
}

.tyre-change .tc-picker__hint-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: #1d1c20;
}

.tyre-change .tc-picker__hint-text {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.tyre-change .tc-picker__body {
    display: flex;
    flex-wrap: wrap;
}

/* display:flex above would beat the UA [hidden] rule — restore it. */
.tyre-change .tc-picker__body[hidden],
.tyre-change .tc-picker__hint[hidden] {
    display: none;
}

.tyre-change .tc-picker__calendar {
    width: 100%;
}

.tyre-change .tc-picker__times {
    width: 100%;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .tyre-change .tc-picker__calendar {
        flex: none;
        width: 320px;
        padding-right: 2rem;
        border-right: 1px solid #e5e7eb;
    }

    .tyre-change .tc-picker__times {
        flex: 1;
        width: auto;
        min-width: 0;
        margin-top: 0;
        padding-left: 2rem;
    }
}

.tyre-change .tc-picker__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tyre-change .tc-picker__month {
    margin: 0;
    font-weight: 800;
    text-align: center;
}

.tyre-change .tc-picker__arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #1d1c20;
    background: rgba(234, 179, 8, 0.18);
}

.tyre-change .tc-picker__arrow:hover {
    background: rgba(234, 179, 8, 0.45);
}

.tyre-change .tc-picker__arrow:disabled {
    background: transparent;
    color: #d1d5db;
    cursor: default;
}

.tyre-change .tc-picker__weekdays,
.tyre-change .tc-picker__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
    gap: 0.25rem;
}

.tyre-change .tc-picker__weekdays span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    padding-bottom: 0.25rem;
}

/* Fluid circles: a fixed 2.5rem x 7 + gaps is wider than the calendar column on phones
   and on the 320px desktop column, so days shrink with the grid cell (capped at 2.5rem). */
.tyre-change .tc-picker__day {
    width: 100%;
    min-width: 0;
    max-width: 2.5rem;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    font-weight: 700;
    color: #1d1c20;
    background: rgba(234, 179, 8, 0.18);
    transition: background 0.15s ease;
}

.tyre-change .tc-picker__day:hover {
    background: rgba(234, 179, 8, 0.45);
}

.tyre-change .tc-picker__day.is-active {
    background: #eab308;
}

.tyre-change .tc-picker__day:disabled {
    background: transparent;
    color: #d1d5db;
    font-weight: 400;
    cursor: default;
}

.tyre-change .tc-picker__times-title {
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.tyre-change .tc-picker__slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
    gap: 0.5rem;
}

.tyre-change .tc-picker__slot {
    padding: 0.5rem 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 700;
    color: #1d1c20;
    background: #fff;
    transition: border-color 0.15s ease;
}

.tyre-change .tc-picker__slot:hover {
    border-color: #1d1c20;
}

.tyre-change .tc-picker__slot.is-active {
    background: #1d1c20;
    border-color: #1d1c20;
    color: #fff;
}

/* Jau užimtas laikas – pilkas, neaktyvus, su „Užimta“ žyma. */
.tyre-change .tc-picker__slot.is-taken,
.tyre-change .tc-picker__slot.is-taken:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.tyre-change .tc-picker__slot-time {
    text-decoration: line-through;
}

.tyre-change .tc-picker__slot-tag {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Prices + extra conditions */
.tyre-change .tc-prices {
    max-width: 40rem;
    margin: 0 auto;
}

.tyre-change .tc-prices__table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    background: #fff;
}

.tyre-change .tc-prices__table th,
.tyre-change .tc-prices__table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.tyre-change .tc-prices__table th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.tyre-change .tc-prices__table td:last-child,
.tyre-change .tc-prices__table th:last-child {
    text-align: right;
    font-weight: 800;
}

.tyre-change .tc-prices__note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
}

.tyre-change .tc-conditions-title {
    margin-top: 2rem;
}

.tyre-change .tc-conditions {
    list-style: disc;
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.7;
}

/* Thank-you page */
.tyre-change .tc-thanks__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 9999px;
    background: #eab308;
    color: #1d1c20;
}

.tyre-change .tc-thanks__check svg {
    width: 48px;
    height: 48px;
}

.tyre-change .tc-thanks {
    max-width: 640px;
    margin: 0 auto;
}

.tyre-change .tc-thanks__card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.25rem 1.5rem;
}

.tyre-change .tc-thanks__row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eef0f3;
}

.tyre-change .tc-thanks__row:last-child {
    border-bottom: 0;
}

.tyre-change .tc-thanks__label {
    flex: none;
    margin-right: 1rem;
    font-weight: 700;
    color: #6b7280;
}

.tyre-change .tc-thanks__value {
    font-weight: 700;
    color: #1d1c20;
    text-align: right;
}

.tyre-change .tc-thanks__maps {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b58a00;
}

.tyre-change .tc-thanks__note {
    margin-top: 1.25rem;
    text-align: center;
    color: #6b7280;
}

/* Phones */
@media (max-width: 639px) {
    .tyre-change .tc-hero {
        padding: 3rem 0;
    }

    .tyre-change .tc-hero h1 {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .tyre-change .tc-benefit {
        padding: 1.25rem;
    }

    .tyre-change .tc-picker {
        padding: 1rem 0.75rem;
    }

    .tyre-change .tc-picker__weekdays,
    .tyre-change .tc-picker__days {
        gap: 0.125rem;
    }

    /* TOS checkbox (w-2/3) + submit (w-1/3) share a row via .forms-nav — stack on phones. */
    .tyre-change .forms-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tyre-change .forms-nav > div {
        width: 100%;
    }

    .tyre-change .forms-nav > div + div {
        margin-top: 1rem;
        text-align: left;
    }

    .tyre-change .forms-nav .button--forms {
        display: block;
        width: 100%;
    }
}
