/* =========================================================
   AI Guards Webinar Booking
   ========================================================= */

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.booking-modal.is-open {
    display: flex;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 34, 0.72);
    backdrop-filter: blur(4px);
}

.booking-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.booking-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    border: 0;
    background: transparent;

    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #061522;
}

.booking-modal-title {
    margin: 0 45px 8px 0;
    color: #061522;
}

.booking-modal-subtitle {
    margin-bottom: 26px;
    color: #666;
}

.booking-date-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-date {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;
    padding: 18px 20px;

    border: 2px solid #e8ecef;
    border-radius: 10px;

    background: #fff;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.booking-date:hover:not(.is-sold-out) {
    border-color: #13c4ca;
}

.booking-date.is-selected {
    border-color: #13c4ca;
    background: rgba(19, 196, 202, 0.06);
}

.booking-date-radio {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;

    border: 2px solid #b7c0c6;
    border-radius: 50%;
}

.booking-date.is-selected .booking-date-radio {
    border: 6px solid #13c4ca;
}

.booking-date-info {
    flex: 1;
}

.booking-date-day {
    display: block;
    font-weight: 700;
    color: #061522;
}

.booking-date-time {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    color: #68727a;
}

.booking-date-status {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-date-status.available {
    color: #16844b;
}

.booking-date-status.limited {
    color: #d47700;
}

.booking-date-status.sold-out {
    color: #d72d2d;
}

.booking-date.is-sold-out {
    opacity: 0.65;
    cursor: not-allowed;
    background: #f7f7f7;
}

.booking-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.booking-continue {
    min-width: 160px;
}

.booking-continue:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.booking-loading,
.booking-error,
.booking-empty {
    padding: 30px 20px;
    text-align: center;
}

.booking-error {
    color: #d72d2d;
}

body.booking-modal-open {
    overflow: hidden;
}


@media (max-width: 767px) {

    .booking-modal {
        padding: 12px;
    }

    .booking-modal-dialog {
        padding: 28px 20px 22px;
        border-radius: 12px;
    }

    .booking-date {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .booking-date-status {
        width: 100%;
        padding-left: 36px;
    }

    .booking-continue {
        width: 100%;
    }
}
/* =========================================================
   Booking Page
   ========================================================= */

.booking-page {
    min-height: 100vh;
    padding: 150px 0 100px;
    background: var(--color-gray-100);
}

.booking-header {
    background: var(--color-secondary);
}

.booking-page-heading {
    margin-bottom: 35px;
}

.booking-page-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 0;
}


/* Progress */

.booking-progress {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.booking-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 700;

    color: var(--color-gray-400);
}

.booking-progress-item span {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--color-gray-400);
    background: var(--color-white);

    border: 2px solid var(--color-gray-300);
}

.booking-progress-item.active {
    color: var(--color-secondary);
}

.booking-progress-item.active span {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.booking-progress-line {
    flex: 1;
    height: 2px;

    margin: 0 15px;

    background: var(--color-gray-300);
}


/* Main cards */

.booking-card,
.booking-summary-card {
    background: var(--color-white);
    border-radius: 12px;

    box-shadow:
        0 5px 30px rgba(6, 21, 34, 0.07);
}

.booking-card {
    padding: 45px;
}

.booking-summary-card {
    position: sticky;
    top: 120px;

    padding: 32px;
}

.booking-summary-card h4 {
    font-size: 23px;
    margin: 8px 0 30px;
}


/* Steps */

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-step-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.booking-step-desc {
    margin-bottom: 35px;
}

.booking-small-label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.6px;

    color: var(--color-primary);
}


/* Selected date */

.booking-selected-date {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: 22px;

    margin-bottom: 35px;

    border-radius: 8px;

    background:
        rgba(var(--color-primary-rgb), 0.07);
}

.booking-selected-date strong,
.booking-selected-date span {
    display: block;
}

.booking-selected-date strong {
    margin: 5px 0 2px;
    color: var(--color-secondary);
}

.booking-change-link {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}


/* Quantity */

.booking-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 25px 0;

    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.booking-hint {
    font-size: 13px;
    margin: 4px 0 0;
}

.booking-quantity {
    display: flex;
    align-items: center;

    border: 2px solid var(--color-gray-300);
}

.booking-quantity button {
    width: 48px;
    height: 48px;

    font-size: 22px;
    font-weight: 600;

    color: var(--color-secondary);
}

.booking-quantity button:hover {
    background: var(--color-light);
}

.booking-quantity input {
    width: 54px;
    height: 48px;

    border: 0;
    border-left: 1px solid var(--color-gray-300);
    border-right: 1px solid var(--color-gray-300);

    text-align: center;

    font-size: 17px;
    font-weight: 700;

    color: var(--color-secondary);
    background: var(--color-white);

    -moz-appearance: textfield;
}

.booking-quantity input::-webkit-inner-spin-button,
.booking-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}


/* Actions */

.booking-step-actions {
    display: flex;
    justify-content: flex-end;

    gap: 15px;

    margin-top: 40px;
}


/* Form */

.booking-form-separator {
    margin: 10px 0 30px;
    border-top: 1px solid var(--color-gray-200);
}


/* Participants */

.booking-participant {
    padding: 25px;

    margin-bottom: 25px;

    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
}

.booking-participant h5 {
    font-size: 18px;
    margin-bottom: 25px;
}


/* Sidebar */

.booking-summary-row {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 9px 0;

    font-size: 14px;
}

.booking-summary-row strong {
    color: var(--color-secondary);
    text-align: right;
}

.booking-summary-divider {
    margin: 18px 0;

    border-top:
        1px solid var(--color-gray-200);
}

.booking-summary-total {
    display: flex;
    justify-content: space-between;

    margin-top: 18px;

    font-size: 17px;
    color: var(--color-secondary);
}

.booking-summary-total strong {
    font-size: 21px;
}

.booking-vat-note {
    margin: 5px 0 0;

    text-align: right;

    font-size: 12px;
}


/* Review */

.booking-review-block {
    padding: 0 0 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-gray-200);
}

.booking-review-block h5 {
    font-size: 18px;
    margin-bottom: 15px;
}

.booking-review-block > strong,
.booking-review-block > span {
    display: block;
}

.booking-review-block > strong {
    color: var(--color-secondary);
    margin-bottom: 3px;
}


/* Ansprechpartner */

.booking-review-contact {
    display: block;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-gray-200);
}

.booking-review-contact-title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--color-secondary);
}

.booking-review-contact-line {
    display: block;
    width: 100%;
    line-height: 1.6;
}


/* Teilnehmer */

.booking-review-participant {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(180px, 1fr);
    gap: 15px;
    align-items: start;
    padding: 12px 0;
}

.booking-review-participant-label {
    color: var(--color-gray-400);
}

.booking-review-person {
    display: block;
    min-width: 0;
}

.booking-review-person-name {
    display: block;
    color: var(--color-secondary);
    line-height: 1.4;
}

.booking-review-position {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-gray-400);
}

.booking-review-participant-email {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}


/* USt-ID */

.booking-review-vatid {
    display: block;
    margin-top: 6px;
}


/* Preisübersicht */

.booking-review-price {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 140px;
    column-gap: 30px;
    row-gap: 8px;
    width: 100%;
    max-width: 500px;
}

.booking-review-price span {
    text-align: left;
}

.booking-review-price strong {
    text-align: right;
    color: var(--color-secondary);
    white-space: nowrap;
}

/* Rabatt / Gutscheincode */

.booking-review-discount {
    color: var(--color-primary) !important;
}

.booking-discount {
    max-width: 500px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--color-gray-200);
}

.booking-discount-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary);
}

.booking-discount-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.booking-discount-form .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-discount-form .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 110px;
    height: 42px;
    padding: 8px 18px;

    align-self: center;

    font-size: 14px;
    line-height: 1;

    white-space: nowrap;
    }

    .booking-discount-message {
        min-height: 20px;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .booking-discount-message.is-success {
        color: #16844b;
    }

    .booking-discount-message.is-error {
        color: #d72d2d;
    }

    .booking-summary-discount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    }

    .booking-summary-discount strong {
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }

@media (max-width: 576px) {

    .booking-discount-form {
        flex-direction: column;
    }

    .booking-discount-form .btn {
        width: 100%;
    }

}

/* Checkbox */

.booking-confirmations {
    margin-top: 30px;
}

.booking-checkbox {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 15px;

    line-height: 1.5;

    cursor: pointer;
}

.booking-checkbox input {
    margin-top: 3px;

    width: 17px;
    height: 17px;

    accent-color: var(--color-primary);
}


/* Responsive */

@media (max-width: 991px) {

    .booking-page {
        padding-top: 110px;
    }

    .booking-summary-card {
        position: static;
        margin-top: 30px;
    }

    .booking-progress-item {
        font-size: 0;
    }

    .booking-progress-item span {
        font-size: 14px;
    }

}


@media (max-width: 767px) {

    .booking-page {
        padding: 90px 0 60px;
    }

    .booking-page-title {
        font-size: 30px;
    }

    .booking-card {
        padding: 25px 20px;
    }

    .booking-summary-card {
        padding: 25px 20px;
    }

    .booking-progress-line {
        margin: 0 7px;
    }

    .booking-selected-date,
    .booking-quantity-wrapper {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-quantity {
        width: 100%;
    }

    .booking-quantity input {
        flex: 1;
    }

    .booking-step-actions {
        flex-direction: column-reverse;
    }

    .booking-step-actions .btn {
        width: 100%;
    }

    .booking-review-participant {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }

    .booking-review-participant-label {
        margin-bottom: 4px;
    }

    .booking-review-participant-email {
        margin-top: 3px;
    }

    .booking-review-price {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 20px;
        max-width: none;
    }

}


/* =========================================================
   Booking Success
   ========================================================= */

.booking-success {
    max-width: 760px;
    margin: 0;
    padding: 10px 0;
    text-align: left;
}

.booking-success-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.booking-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
}

.booking-success-status .booking-small-label {
    display: inline-block;
    margin: 0;
    line-height: 1;
}

.booking-success h2 {
    margin: 8px 0 22px;
}

.booking-success-intro {
    max-width: 700px;
    margin: 0 0 28px;
}

.booking-success-details {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 35px;
    row-gap: 7px;
    width: 100%;
    max-width: 650px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.booking-success-details > div {
    display: contents;
}

.booking-success-details span {
    display: block;
    color: var(--color-gray-400);
}

.booking-success-details strong {
    display: block;
    color: var(--color-secondary);
    text-align: left;
    white-space: nowrap;
}

.booking-success-invoice {
    display: block;
    margin: 14px 0 28px;
    padding: 0;
    font-weight: 400;
    color: var(--color-gray-400);
}

@media (max-width: 576px) {

    .booking-success-details {
        display: block;
    }

    .booking-success-details > div {
        display: block;
        margin-bottom: 12px;
    }

    .booking-success-details span,
    .booking-success-details strong {
        display: block;
    }

    .booking-success-details strong {
        margin-top: 2px;
        white-space: normal;
    }

    /* =========================================================
    Booking verification – Help
    ========================================================= */

    .booking-help-box {
        width: 100%;
        max-width: 620px;
        margin: 28px auto 30px;
        padding: 22px 24px;

        border: 1px solid rgba(19, 196, 202, 0.25);
        border-radius: 12px;

        background: rgba(19, 196, 202, 0.06);

        text-align: left;
    }

    .booking-help-title {
        margin-bottom: 10px;

        font-family: "DM Sans", sans-serif;
        font-size: 16px;
        font-weight: 700;
    }

    .booking-help-box p {
        margin: 0 0 10px;
        line-height: 1.6;
    }

    .booking-help-box p:last-child {
        margin-bottom: 0;
    }

    .booking-help-box a {
        font-weight: 600;
        text-decoration: none;
    }

    .booking-help-box a:hover {
        text-decoration: underline;
    }

}
