body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4fafb;
}

#mainSection {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 130px 20px 64px;
    box-sizing: border-box;
}

.nahradyForm {
    width: min(1080px, 100%);
    max-width: 1080px !important;
    box-sizing: border-box;
    padding: 34px;
    border: 1px solid #d9e8ea;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(3, 79, 93, .09);
}

/* global.css disables pointer events on every label; the form must remain interactive. */
.nahradyForm label,
.nahradyForm label * {
    pointer-events: auto;
}

.makeup-heading {
    text-align: center;
    margin-bottom: 30px;
}

.makeup-heading h1,
.makeup-success h1 {
    margin: 7px 0 8px;
    color: #034f5d;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.makeup-heading p,
.makeup-success p {
    margin: 0;
    color: #526b72;
}

.makeup-kicker {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e3fbfb;
    color: #006f78;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.makeup-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 25px 0;
    border-top: 1px solid #e5eff0;
}

.step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00cfd0;
    color: #fff;
    font-weight: 800;
}

.step-content h2 {
    margin: 4px 0 17px;
    color: #17343b;
    font-size: 1.15rem;
}

.makeup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.makeup-grid label,
.date-label {
    display: grid;
    gap: 7px;
    color: #29464d;
    font-size: .9rem;
    font-weight: 700;
}

.makeup-grid input,
.makeup-grid select,
.date-label input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #b9ced2;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    color: #17343b;
    font: inherit;
}

.makeup-grid input:focus,
.makeup-grid select:focus,
.date-label input:focus {
    outline: 3px solid rgba(0, 207, 208, .18);
    border-color: #00aeb0;
}

.datumKurzyNavst,
.casyKurzyNavst {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.datumKurzOption,
.casyKurzOption {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
    padding: 13px;
    border: 2px solid #d3e0e2;
    border-radius: 12px;
    background: #f8fbfb;
    color: #17343b;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.datumKurzOption:hover,
.casyKurzOption:hover {
    transform: translateY(-1px);
    border-color: #7ddfe0;
}

.datumKurzOption:has(input:checked),
.casyKurzOption:has(input:checked) {
    border-color: #00bfc1;
    background: #ecffff;
}

.datumKurzOption input,
.casyKurzOption input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0 0 0 auto;
    accent-color: #00aeb0;
}

.datumKurzOption img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.selection-dot {
    display: none;
}

label:has(input:checked) .selection-dot {
    border-color: #00aeb0;
    background: #00cfd0;
}

.hint,
.privacy-note {
    color: #60777d;
    font-size: .88rem;
}

.date-label {
    max-width: 300px;
}

.makeup-consent {
    margin: 8px 0 0 62px;
    padding: 24px;
    border-radius: 14px;
    background: #f1fbfb;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #29464d;
    line-height: 1.45;
}

.consent-label input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    accent-color: #00aeb0;
}

.sendFormBtn,
.makeup-button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    box-sizing: border-box;
    margin-top: 18px;
    border: 0;
    border-radius: 11px;
    background: #00bfc1;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.sendFormBtn:hover,
.makeup-button:hover {
    background: #009fa2;
}

.sendFormBtn:disabled {
    opacity: .62;
    cursor: wait;
}

.makeup-alert {
    padding: 13px 15px;
    border-radius: 10px;
    line-height: 1.45;
}

.makeup-alert.error {
    margin-top: 16px;
    border: 1px solid #efb1b1;
    background: #fff3f3;
    color: #8b2424;
}

.makeup-alert ul {
    margin: 8px 0 0;
}

.makeup-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.is-hidden {
    display: none !important;
}

.success-shell {
    align-items: center !important;
}

.makeup-success {
    width: min(650px, 100%);
    box-sizing: border-box;
    padding: 38px;
    border: 1px solid #d9e8ea;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(3, 79, 93, .09);
}

.success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #dcfbef;
    color: #078753;
    font-size: 2rem;
    font-weight: 900;
}

.makeup-success dl {
    margin: 26px 0 0;
    text-align: left;
}

.makeup-success dl div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #e6eff0;
}

.makeup-success dt {
    color: #60777d;
}

.makeup-success dd {
    margin: 0;
    color: #17343b;
    font-weight: 700;
}

@media (max-width: 720px) {
    #mainSection { padding: 105px 12px 42px; }
    .nahradyForm, .makeup-success { padding: 22px 16px; border-radius: 16px; }
    .makeup-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
    .step-number { width: 30px; height: 30px; }
    .makeup-grid, .datumKurzyNavst, .casyKurzyNavst { grid-template-columns: 1fr; }
    .makeup-consent { margin-left: 0; padding: 18px; }
    .makeup-success dl div { grid-template-columns: 1fr; gap: 4px; }
}
