/* WRAPPER + CARD */

.doctel-booking-wrapper {
    max-width: 640px;
    margin: 32px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.doctel-booking-root {
    background: radial-gradient(circle at top left, #0bb3c6 0, #01242b 55%, #02151a 100%);
    border-radius: 24px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(11, 179, 198, 0.45);
    color: #f6ffff;
    position: relative;
    overflow: hidden;
}

/* subtle AI glow */
.doctel-booking-root::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(circle at 100% 80%, rgba(11, 179, 198, 0.18), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

/* inner content layer */
.doctel-booking-assistant {
    position: relative;
    z-index: 1;
}

/* PROGRESS */

.doctel-booking-progress {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(224, 252, 255, 0.9);
    margin-bottom: 10px;
    opacity: 0.9;
}

/* BUBBLES */

.doctel-bubble {
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.doctel-bubble-system {
    background: rgba(3, 26, 32, 0.73);
    border: 1px solid rgba(155, 236, 245, 0.28);
    color: #ecfdff;
}

/* OPTIONS + TIMING BUTTONS */

.doctel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.doctel-option-btn,
.doctel-timing-btn {
    flex: 1 1 calc(50% - 10px);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(178, 235, 244, 0.5);
    font-size: 13px;
    cursor: pointer;
    background: rgba(2, 34, 42, 0.9);
    color: #e8feff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* full width layout for timing buttons so it feels deliberate */
.doctel-timing-btn {
    flex: 1 1 100%;
}

/* glow on hover / active */

.doctel-option-btn:hover,
.doctel-timing-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    background: radial-gradient(circle at top left, #0bb3c6 0, #023845 70%);
    border-color: rgba(176, 246, 255, 0.9);
}

.doctel-option-active,
.doctel-timing-btn.doctel-option-active {
    background: radial-gradient(circle at 20% 0, #0bb3c6 0, #015d6a 65%);
    border-color: rgba(193, 252, 255, 0.95);
    color: #ffffff;
}

/* INPUTS */

.doctel-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(180, 232, 241, 0.8);
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 14px;
    outline: none;
    background: rgba(5, 55, 68, 0.96);      /* lighter teal */
    color: #ffffff;                         /* pure white text */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55) inset;
}

/* extra safety for textareas */
textarea.doctel-input {
    color: #ffffff !important;
}


.doctel-input::placeholder {
    color: rgba(199, 236, 241, 0.6);
}

.doctel-input:focus {
    border-color: rgba(113, 239, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(113, 239, 255, 0.7),
        0 0 0 6px rgba(12, 188, 213, 0.35);
}

/* helper text */

.doctel-helper {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
    color: rgba(213, 245, 248, 0.9);
}

/* FIELDS */

.doctel-field-group {
    margin-bottom: 12px;
}

.doctel-field-group label {
    display: block;
    font-size: 13px;
    color: rgba(227, 252, 255, 0.9);
    margin-bottom: 4px;
}

/* NAV BUTTONS */

.doctel-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.doctel-btn-primary,
.doctel-btn-secondary {
    flex: 1 1 0;
    padding: 10px 13px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition:
        box-shadow 0.12s ease,
        transform 0.12s ease,
        background 0.12s ease,
        color 0.12s ease,
        border-color 0.12s ease;
}

/* primary = gradient CTA */

.doctel-btn-primary {
    background: linear-gradient(135deg, #0bf0ff, #0bb3c6 40%, #006673 100%);
    color: #051015;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(171, 249, 255, 0.9);
    font-weight: 600;
}

.doctel-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #c7ffff, #0bf0ff 40%, #04899a 100%);
}

/* secondary = subtle outline */

.doctel-btn-secondary {
    background: transparent;
    color: rgba(213, 246, 248, 0.9);
    border: 1px solid rgba(151, 221, 231, 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.doctel-btn-secondary:hover {
    background: rgba(6, 54, 64, 0.85);
    border-color: rgba(185, 244, 252, 0.9);
}

/* STATUS + ERRORS */

.doctel-loading {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(215, 247, 249, 0.95);
}

.doctel-error {
    margin-top: 12px;
    padding: 8px 10px;
    background: rgba(255, 104, 104, 0.08);
    border-radius: 12px;
    color: #ffd0d0;
    font-size: 13px;
    border: 1px solid rgba(255, 139, 139, 0.42);
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .doctel-booking-root {
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .doctel-option-btn,
    .doctel-timing-btn {
        flex: 1 1 100%;
    }
}
/* -------------------------------------------------
   Brand-tinted buttons per service + timing choice
   ------------------------------------------------- */

/* SERVICE BUTTONS */

/* GP Telehealth */
.doctel-option-btn[data-service="GP Telehealth"] {
    background: rgba(5, 39, 52, 0.95);
    border-color: rgba(96, 214, 255, 0.9);
}
.doctel-option-btn[data-service="GP Telehealth"]:hover,
.doctel-option-btn[data-service="GP Telehealth"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #31d8ff 0, #007992 70%);
    border-color: rgba(190, 248, 255, 1);
}

/* Mental Health */
.doctel-option-btn[data-service="Mental Health"] {
    background: rgba(10, 34, 44, 0.95);
    border-color: rgba(110, 225, 240, 0.85);
    color: #eaffff;
}
.doctel-option-btn[data-service="Mental Health"]:hover,
.doctel-option-btn[data-service="Mental Health"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #58e7f6 0, #0a6b7c 70%);
    border-color: rgba(200, 250, 255, 1);
    color: #ffffff !important;
}

/* Medical Cannabis */
.doctel-option-btn[data-service="Medical Cannabis"] {
    background: rgba(12, 46, 40, 0.95);
    border-color: rgba(158, 237, 189, 0.85);
}
.doctel-option-btn[data-service="Medical Cannabis"]:hover,
.doctel-option-btn[data-service="Medical Cannabis"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #86f2b5 0, #0f7f57 70%);
    border-color: rgba(211, 252, 224, 1);
}

/* Dietitian & Weight Management */
.doctel-option-btn[data-service="Dietitian & Weight Management"] {
    background: rgba(40, 46, 24, 0.95);
    border-color: rgba(204, 229, 164, 0.85);
}
.doctel-option-btn[data-service="Dietitian & Weight Management"]:hover,
.doctel-option-btn[data-service="Dietitian & Weight Management"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #e4ffb0 0, #7a9130 70%);
    border-color: rgba(241, 255, 206, 1);
}

/* VetCare */
.doctel-option-btn[data-service="VetCare"] {
    background: rgba(9, 32, 40, 0.95);
    border-color: rgba(140, 220, 255, 0.85);
    color: #eaffff;
}
.doctel-option-btn[data-service="VetCare"]:hover,
.doctel-option-btn[data-service="VetCare"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #8fe3ff 0, #0b7ba1 70%);
    border-color: rgba(195, 241, 255, 1);
    color: #ffffff !important;
}


/* TIMING BUTTONS */

/* First available */
.doctel-timing-btn[data-timing="available"] {
    background: rgba(4, 37, 46, 0.95);
    border-color: rgba(142, 234, 255, 0.9);
}
.doctel-timing-btn[data-timing="available"]:hover,
.doctel-timing-btn[data-timing="available"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #86efff 0, #02758b 70%);
    border-color: rgba(201, 249, 255, 1);
}

/* Book for later */
.doctel-timing-btn[data-timing="later"] {
    background: rgba(18, 35, 46, 0.95);
    border-color: rgba(178, 210, 255, 0.85);
}
.doctel-timing-btn[data-timing="later"]:hover,
.doctel-timing-btn[data-timing="later"].doctel-option-active {
    background: radial-gradient(circle at 20% 0, #bed5ff 0, #29557f 70%);
    border-color: rgba(219, 236, 255, 1);
}
/* Ensure button text always stays readable */
.doctel-option-btn:hover,
.doctel-option-btn.doctel-option-active,
.doctel-timing-btn:hover,
.doctel-timing-btn.doctel-option-active {
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
}
/* -----------------------------------------
   Category quick-pick (reason step)
   ----------------------------------------- */

.doctel-category-group {
    margin-top: 8px;
    margin-bottom: 6px;
}

.doctel-category-group .doctel-helper {
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(214, 244, 247, 0.9);
}

.doctel-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin: 0 6px 6px 0;
    border-radius: 999px;
    border: 1px solid rgba(150, 225, 236, 0.5);
    font-size: 11px;
    line-height: 1.3;
    background: rgba(3, 33, 41, 0.9);
    color: #e6fdff;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease,
        box-shadow 0.12s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

/* hover + active: teal/blue glow, no purple */
.doctel-category-btn:hover,
.doctel-category-btn.doctel-category-active {
    background: radial-gradient(circle at 20% 0, #62ecff 0, #087488 70%);
    border-color: rgba(196, 247, 255, 1);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-0.5px);
}

@media (max-width: 600px) {
    .doctel-category-btn {
        font-size: 10px;
        padding: 6px 9px;
    }
}
.doctel-subcategory-group {
    margin-top: 4px;
    margin-bottom: 4px;
}

.doctel-subcategory-group .doctel-helper {
    margin-bottom: 4px;
    font-size: 11px;
    color: rgba(214, 244, 247, 0.9);
}

.doctel-subcategory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin: 0 6px 6px 0;
    border-radius: 999px;
    border: 1px solid rgba(150, 225, 236, 0.6);
    font-size: 11px;
    line-height: 1.3;
    background: rgba(2, 30, 38, 0.95);
    color: #e6fdff;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease,
        box-shadow 0.12s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

.doctel-subcategory-btn:hover,
.doctel-subcategory-btn.doctel-subcategory-active {
    background: radial-gradient(circle at 20% 0, #62ecff 0, #087488 70%);
    border-color: rgba(196, 247, 255, 1);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-0.5px);
}
.doctel-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999 !important;
    overflow-y: auto;          /* THIS allows scrolling */
    padding: 40px 0;           /* breathing room top/bottom */
    display: flex;
    justify-content: center;
}

.doctel-consent-modal {
    background: rgba(7, 34, 44, 0.98);
    border-radius: 18px;
    padding: 28px 30px;
    width: 90%;
    max-width: 520px;

    max-height: calc(100vh - 100px);  /* Modal always fits viewport */
    overflow-y: auto;                 /* Modal scrolls internally */

    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

/* Slight breathing room inside */
.doctel-consent-body {
    margin-bottom: 18px;
}

.doctel-consent-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


.doctel-consent-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.03em;
}

.doctel-consent-body {
    color: #e5f7ff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px; /* breathing room above checkbox */
}

.doctel-consent-body ul {
    margin: 8px 0 8px 20px;
    padding: 0;
}

.doctel-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    color: #e5f7ff;
    font-size: 13px;
}

.doctel-consent-checkbox input {
    margin-top: 2px;
}

.doctel-consent-error {
    color: #ffb3b3;
    font-size: 12px;
    margin-bottom: 10px;
}

.doctel-consent-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* Inputs inside the booking assistant */
.doctel-booking-assistant input[type="text"],
.doctel-booking-assistant input[type="email"],
.doctel-booking-assistant input[type="tel"],
.doctel-booking-assistant textarea,
.doctel-booking-assistant select {
    background: #0F172A !important;  /* dark navy, matches the card */
    color: #E5F4FF !important;        /* readable light text */
    border: 1px solid #1E293B !important; 
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

/* Placeholder text (Name, Email, Reason, etc.) */
.doctel-booking-assistant input::placeholder,
.doctel-booking-assistant textarea::placeholder {
    color: #94A3B8 !important;     /* medium grey, readable */
}

/* Input focus glow */
.doctel-booking-assistant input:focus,
.doctel-booking-assistant textarea:focus,
.doctel-booking-assistant select:focus {
    outline: none !important;
    border-color: #14b8a6 !important;   /* DocTel teal */
    box-shadow: 0 0 0 1px #14b8a6 !important;
}
/* Reason / main concern textarea */
#dtb-reason {
    background: #0F172A !important;   /* dark navy in line with card */
    color: #E5F4FF !important;        /* light readable text */
    border: 1px solid #1E293B !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

/* Placeholder inside Reason box */
#dtb-reason::placeholder {
    color: #94A3B8 !important;        /* medium grey, still readable */
}
/* Reason / main concern textarea */
#dtb-reason {
    background: #0F172A !important;   /* dark navy like the card */
    color: #E5F4FF !important;        /* light readable text */
    border: 1px solid #1E293B !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

/* Placeholder inside Reason box */
#dtb-reason::placeholder {
    color: #94A3B8 !important;        /* medium grey, readable */
}
