﻿html, body {
    margin: 0;
    padding: 0;
}

/* //////////////////////////////////// */
/* FIRST-PARTY DEMO BOOKING WIDGET      */
/* //////////////////////////////////// */

.demo-booking-wrapper {
    width: 100%;
    min-height: 700px;
    padding: 40px 16px 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.demo-booking-card {
    background: #ffffff;
    border: 1px solid #d7e3ff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(21, 93, 238, 0.08);
    max-width: 720px;
    width: 100%;
    padding: 32px;
    box-sizing: border-box;
    color: #101828;
}

.demo-booking-header h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    color: #101828;
}

.demo-booking-header p {
    margin: 0 0 6px;
    color: #344054;
}

.demo-tz-note {
    font-size: 0.85rem;
    color: #667085;
}

.demo-booking-loading {
    padding: 40px 0;
    text-align: center;
    color: #667085;
}

.demo-booking-error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}

.demo-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.demo-date-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 0 12px;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
}

/* Same size/shape as the day buttons — only the dashed border marks it out.
   Double class beats the later .demo-date-btn rules regardless of order. */
.demo-date-btn.demo-date-jump-btn {
    border-style: dashed;
    border-color: #155dee;
    color: #155dee;
}

.demo-date-btn.demo-date-jump-btn:hover {
    background: #155dee;
    color: #ffffff;
}

/* Kept in-flow but visually hidden so showPicker()/focus anchors the native
   calendar popup near the button. */
.demo-date-jump-input {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
    pointer-events: none;
}

.demo-questions-row {
    margin-top: 14px;
}

.demo-date-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.demo-date-btn:hover {
    border-color: #155dee;
    color: #155dee;
}

.demo-date-btn.selected {
    background: #155dee;
    border-color: #155dee;
    color: #ffffff;
}

.demo-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    padding-top: 8px;
}

.demo-slot-btn {
    padding: 12px 0;
    border: 1px solid #155dee;
    border-radius: 8px;
    background: #ffffff;
    color: #155dee;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-slot-btn:hover {
    background: #155dee;
    color: #ffffff;
}

.demo-no-slots {
    color: #667085;
    padding: 16px 0;
}

.demo-selected-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #eff4ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    font-weight: 600;
}

.demo-selected-slot button {
    background: none;
    border: none;
    color: #155dee;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    white-space: nowrap;
}

.demo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

#demoForm label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
    color: #344054;
    gap: 6px;
}

#demoForm input,
#demoForm textarea {
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #101828;
    box-sizing: border-box;
    width: 100%;
}

#demoForm input:focus,
#demoForm textarea:focus {
    outline: none;
    border-color: #155dee;
    box-shadow: 0 0 0 3px rgba(21, 93, 238, 0.15);
}

.demo-notes-label {
    margin-top: 14px;
}

.demo-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.demo-book-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #155dee;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.demo-book-btn:hover {
    background-color: #163cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 93, 238, 0.3);
    color: #ffffff;
}

.demo-book-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.demo-success {
    text-align: center;
    padding: 24px 0 8px;
}

.demo-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #067647;
    font-size: 1.6rem;
    font-weight: 700;
}

.demo-success h2 {
    margin: 0 0 8px;
    color: #101828;
}

/* Manage/cancel page */
.demo-manage-wrapper {
    width: 100%;
    min-height: 60vh;
    padding: 60px 16px;
    box-sizing: border-box;
    background: #eff4ff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.demo-manage-card {
    background: #ffffff;
    border: 1px solid #d7e3ff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(21, 93, 238, 0.08);
    max-width: 560px;
    width: 100%;
    padding: 32px;
    box-sizing: border-box;
    color: #101828;
}

.demo-manage-card h1 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.demo-manage-details p {
    margin: 0 0 10px;
    color: #344054;
}

.demo-status {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.demo-status-booked {
    background: #ecfdf3;
    color: #067647;
}

.demo-status-cancelled {
    background: #fef3f2;
    color: #b42318;
}

.demo-cancel-btn {
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #ffffff;
    color: #b42318;
    border: 1px solid #fecdca;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-cancel-btn:hover:not(:disabled) {
    background: #fef3f2;
}

.demo-manage-hint {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #667085;
}

.email-warning-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.email-warning-modal.show {
    opacity: 1;
    visibility: visible;
}

.email-warning-modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 4px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 1.1rem;
    font-weight: 500;
    color: #101828;
    border: 1px solid #155dee;
    /* Animation properties */
    transform: scale(0.7) translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.email-warning-modal.show .email-warning-modal-content {
    transform: scale(1) translateY(0);
}

.email-warning-modal-content button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #155dee;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-warning-modal-content button:hover {
    background-color: #163cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 93, 238, 0.3);
}

@media (max-width: 730px) {
    .demo-booking-wrapper {
        margin-top: 50px;
        padding: 20px 10px 40px;
    }

    .demo-booking-card {
        padding: 20px 16px;
    }

    .demo-form-grid {
        grid-template-columns: 1fr;
    }

    .demo-selected-slot {
        flex-direction: column;
        align-items: flex-start;
    }

    .email-warning-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* //////////////////////////////////// */
/* FOOTER SOCIAL MEDIA */
/* //////////////////////////////////// */

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #155dee;
        transition: all 0.3s ease;
    }

        .footer-social a:hover {
            background-color: #163cc4;
            transform: scale(120%);
        }

    .footer-social svg {
        width: 20px;
        height: 20px;
        fill: #101828;
        transition: fill 0.3s ease;
    }

    .footer-social a:hover svg {
        fill: #fff);
    }

@media (max-width: 768px) {
    .footer-social {
        gap: 15px;
    }

        .footer-social a {
            width: 35px;
            height: 35px;
        }

        .footer-social svg {
            width: 18px;
            height: 18px;
        }
}