.ares-field {
    position: relative;
    grid-column: 1 / -1;
}

.ares-input-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.ares-input-group input {
    flex: 1 1 auto;
    min-width: 0;
}

.ares-button {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #183b6b;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ares-button:hover {
    background: #102d53;
}

.ares-button:focus-visible {
    outline: 3px solid rgba(24, 59, 107, 0.25);
    outline-offset: 2px;
}

.ares-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .ares-input-group {
        flex-direction: column;
    }

    .ares-button {
        width: 100%;
        min-height: 48px;
    }
}
.ares-status {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.45rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #5f6f89;
}

.ares-status.is-loading {
    color: #275dad;
}

.ares-status.is-success {
    color: #18713c;
}

.ares-status.is-error {
    color: #c62828;
}
.ares-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #e6c768;
    border-left: 4px solid #d9a900;
    border-radius: 10px;
    background: #fff9e8;
    color: #5f4b00;
    font-size: 0.875rem;
    line-height: 1.45;
}
.ares-notice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: #d9a900;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.ares-notice p {
    margin: 0;
}

.ares-notice strong {
    color: #493900;
}
.ares-loading {
    cursor: progress;
    background-image:
        linear-gradient(90deg,
            rgba(39, 93, 173, 0) 0%,
            rgba(39, 93, 173, 0.08) 50%,
            rgba(39, 93, 173, 0) 100%);
    background-size: 200% 100%;
    animation: ares-loading-pulse 1.2s linear infinite;
}

@keyframes ares-loading-pulse {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}
.contact-person-section {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid #d8deea;
}

.contact-person-heading {
    margin-bottom: 16px;
}

.contact-person-heading h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.contact-person-heading p {
    margin: 0;
    color: #5f6f89;
}

.contact-person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.contact-phone-group {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
}

.contact-phone-prefix input,
.contact-phone-number input {
    width: 100%;
}

.contact-phone-prefix input {
    text-align: center;
}

@media (max-width: 700px) {
    .contact-person-grid {
        grid-template-columns: 1fr;
    }

    .contact-phone-group {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}
.participant-item input.field-error {
    border-color: #c62828;
    box-shadow: 0 0 0 1px #c62828;
}

.participant-card {
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.participant-card.participant-card--error {
    border-color: #d92d20;
    background: #fff8f7;
    box-shadow: 0 0 0 1px rgba(217, 45, 32, 0.08);
}

.participant-card.participant-card--error .participant-header h2 {
    color: #b42318;
}
.participant-email-errors-row {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
}

.participant-email-error {
    width: 100%;
    padding: 11px 14px;
    border-left: 4px solid #d92d20;
    border-radius: 8px;
    background: #fff1f0;
    color: #b42318;
    font-size: 0.9rem;
    line-height: 1.45;
}

.participant-email-error[hidden] {
    display: none;
}

.participant-card input.field-error {
    border-color: #d92d20;
    box-shadow: 0 0 0 1px #d92d20;
}
.remove-participant-button {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin: 0;
    padding: 8px 12px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: #c62828;

    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.remove-participant-button:hover {
    border-color: #efb6b2;
    background: #fff1f0;
    color: #a61b1b;
}

.remove-participant-button:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.2);
    outline-offset: 2px;
}

.remove-participant-button[hidden] {
    display: none !important;
}

.remove-participant-button .remove-participant-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.remove-participant-button .remove-participant-label {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

/* Objednávkové akce: jednotná hierarchie primární / sekundární navigace. */
.register-page .summary-submit-button,
.register-page .button-primary,
.register-page .checkout-back-button,
.register-page .register-actions .add-person-button,
.register-page .restart-order-button {
    min-height: 52px;
    border-radius: 14px;
    font-weight: 700;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease,
        opacity 0.18s ease;
}

.register-page .summary-submit-button,
.register-page .button-primary {
    border: 1px solid #183b6b;
    background: #183b6b;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(24, 59, 107, 0.16);
}

.register-page .summary-submit-button:hover:not(:disabled),
.register-page .button-primary:hover:not(:disabled) {
    border-color: #102d53;
    background: #102d53;
    box-shadow: 0 10px 22px rgba(24, 59, 107, 0.2);
    transform: translateY(-1px);
}

.register-page .checkout-back-button,
.register-page .register-actions .add-person-button {
    border: 1px solid #b9c6d8;
    background: #ffffff;
    color: #183b6b;
}

.register-page .checkout-back-button:hover:not(:disabled),
.register-page .register-actions .add-person-button:hover:not(:disabled) {
    border-color: #7f96b5;
    background: #f5f8fc;
    transform: translateY(-1px);
}

.register-page .restart-order-button {
    border: 1px solid #b9c6d8;
    background: #ffffff;
    color: #183b6b;
    box-shadow: none;
}

.register-page .restart-order-button:hover:not(:disabled) {
    border-color: #7f96b5;
    background: #f5f8fc;
    color: #183b6b;
    transform: translateY(-1px);
}

.register-page .summary-submit-button:focus-visible,
.register-page .button-primary:focus-visible,
.register-page .checkout-back-button:focus-visible,
.register-page .register-actions .add-person-button:focus-visible,
.register-page .restart-order-button:focus-visible {
    outline: 3px solid rgba(47, 125, 246, 0.28);
    outline-offset: 3px;
}

.register-page .summary-submit-button:active:not(:disabled),
.register-page .button-primary:active:not(:disabled),
.register-page .checkout-back-button:active:not(:disabled),
.register-page .register-actions .add-person-button:active:not(:disabled),
.register-page .restart-order-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.register-page .summary-submit-button:disabled,
.register-page .button-primary:disabled,
.register-page .checkout-back-button:disabled,
.register-page .register-actions .add-person-button:disabled,
.register-page .restart-order-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}


/* Checkout navigation and sticky action panels. */
@media (min-width: 1101px) {
    .register-page .order-summary-card,
    .register-page .course-info-action-card,
    .register-page .final-order-action-card {
        top: calc(var(--header-height) + 104px);
    }
}

.register-page .final-order-action-card p {
    margin-bottom: 22px;
    color: var(--color-card-muted);
    font-size: 15px;
    line-height: 1.6;
}

.register-page .restart-order-button {
    width: 100%;
    margin-top: 12px;
    padding: 0 20px;
}

@media (max-width: 1100px) {
    .register-page .final-order-action-card {
        position: static;
    }
}

.register-page .final-action-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    background: #f7f9fc;
    font-size: 14px;
    line-height: 1.5;
}

.register-page .final-action-consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 3px;
}

.register-page .final-action-consent .terms-link {
    font-weight: 600;
}

/* Větší odstup akčních tlačítek od cenového souhrnu. */
.register-page .order-summary-card > .summary-submit-button {
    margin-top: 22px;
}

/* Objednávka: sjednocení textů s tmavě modrou barvou primárních CTA. */
.register-page .checkout-step,
.register-page .checkout-step .step-label,
.register-page .final-action-consent,
.register-page .final-action-consent .terms-link {
    color: #183b6b;
}

/* Aktivní krok zůstává výrazně modrý jako orientační prvek. */
.register-page .checkout-step.active,
.register-page .checkout-step.active .step-label {
    color: #0066f5;
}

/* Neaktivní čísla kroků */
.register-page .checkout-step > span {
    background: #e5ebf4;
    color: #183b6b;
}

/* Aktivní číslo kroku */
.register-page .checkout-step.checkout-step--active > span {
    background: #183b6b;
    color: #ffffff;
}

/* ==========================================================================
   MOBILE CHECKOUT GEOMETRY
   Authoritative page-specific mobile layout.
   Kept in registration.css so it is tied to the checkout template itself.
   ========================================================================== */
@media (max-width: 768px) {
    body .register-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 24px !important;
    }

    /*
     * The global .container adds 28px horizontal padding. The checkout must
     * intentionally ignore that gutter on phones/tablets while the header
     * keeps using the normal site container.
     */
    body .register-page > .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .register-page .register-card,
    body .register-page .register-checkout-shell,
    body .register-page .checkout-layout,
    body .register-page .register-form {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .register-page .register-card {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .register-page .register-checkout-shell {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 0 !important;
    }

    /*
     * Neutralize the desktop shell's negative margins. The step strip itself
     * spans the full checkout width; only its controls keep internal padding.
     */
    body .register-page .checkout-steps {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    body .register-page .checkout-steps-left {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    body .register-page .checkout-step {
        min-width: 0 !important;
        font-size: 0 !important;
    }

    body .register-page .checkout-step span {
        font-size: 14px !important;
    }

    /*
     * Every step panel gets the same geometry. Cards may keep their own
     * internal padding, but no parent wrapper may introduce an outer gutter.
     */
    body .register-page .checkout-step-panel,
    body .register-page .selector-grid,
    body .register-page .selected-course-detail,
    body .register-page .participant-card,
    body .register-page .billing-card,
    body .register-page .final-summary-card,
    body .register-page .order-summary-card,
    body .register-page .course-info-action-card,
    body .register-page .final-order-action-card {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body .register-page .checkout-layout,
    body .register-page .register-form {
        box-sizing: border-box;
    }
}

/* Text and aria-describedby accompany the border, including on mobile. */
.register-page .checkout-field-error {
    color: #b42318;
    font-size: .875rem;
    line-height: 1.4;
    margin: .4rem 0 .6rem;
    overflow-wrap: anywhere;
}
.register-page .field-error { border: 2px solid #d92d20 !important; }
