/* ============================================
   TWILIO VOICE PLUGIN STYLES
   ============================================ */

@keyframes um-user-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes um-user-signal-travel {
    0% { left: 0; opacity: 0.95; }
    50% { opacity: 1; }
    100% { left: calc(100% - 20px); opacity: 0.95; }
}

@keyframes um-user-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes um-user-loader-rings {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes um-user-pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

/* Shared profile-page call flow for um_user_call_button */
.um-member-tagline-call_me.memberpopup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.um-user-call-button-shared {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 200px;
    max-width: 100%;
    min-height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 4px;
    border: none !important;
    background: #ff1493 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 10px;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    will-change: transform;
}

.um-user-call-button-shared i {
    font-size: 20px;
    width: auto;
    color: #fff;
}

.um-user-call-button-shared:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.um-user-call-button-shared:active {
    transform: translateY(0);
}

.um-user-call-button-shared.unavailable,
.um-user-call-button-shared[data-call-available="0"] {
    background: #9e9e9e !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
    transform: none;
    opacity: 1;
    gap: 0;
    text-align: center;
}

.um-user-call-button-shared.unavailable i,
.um-user-call-button-shared[data-call-available="0"] i {
    display: none !important;
}

.advisor-profile-time-option {
    display: block;
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.advisor-profile-time-option:hover {
    background: rgba(255, 20, 147, 0.25);
    transform: translateY(-1px);
}

.call-me-button-slideshow.advisor-slideshow-btn-ok,
.call-me-button-slideshow.advisor-slideshow-btn-cancel {
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    color: #fff;
}

.call-me-button-slideshow.advisor-slideshow-btn-ok {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.call-me-button-slideshow.advisor-slideshow-btn-cancel {
    background: linear-gradient(135deg, #666, #999);
}

.um-user-call-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.98);
    z-index: 1000000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: um-user-fade-in 0.3s ease;
}

.um-user-call-loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 450px;
    padding: 35px 25px;
    background: rgba(42, 42, 42, 0.95);
    border-radius: 20px;
    border: 2px solid rgba(255, 20, 147, 0.38);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.um-user-loader-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid #ff1493;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-user-loader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.um-user-call-loader-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.um-user-call-loader-spinner div {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 8px solid #ff1493;
    border-radius: 50%;
    animation: um-user-loader-rings 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #ff1493 transparent transparent transparent;
}

.um-user-call-loader-spinner div:nth-child(1) {
    animation-delay: -0.45s;
}

.um-user-call-loader-spinner div:nth-child(2) {
    animation-delay: -0.3s;
}

.um-user-call-loader-spinner div:nth-child(3) {
    animation-delay: -0.15s;
}

.um-user-call-loader-text {
    color: #ff1493;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
    animation: um-user-pulse-text 1.5s ease-in-out infinite;
}

.um-user-call-loader-subtext {
    color: #ff1493;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.um-user-call-loader-details {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
    padding: 10px;
    background: rgba(255, 20, 147, 0.12);
    border-radius: 10px;
}

.um-user-call-status-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.um-user-call-status-card {
    width: min(92vw, 560px);
    margin: 16vh auto 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 20, 147, 0.42);
    background: linear-gradient(145deg, #2a232b, #332433);
    color: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
    padding: 18px;
}

.um-user-call-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.um-user-call-status-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ff1493;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.um-user-call-status-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 20, 147, 0.46);
    background: rgba(255, 20, 147, 0.16);
    color: #ffd1e8;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.um-user-call-status-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.um-user-call-status-left {
    min-width: 0;
}

.um-user-call-status-nickname {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ff1493;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-user-call-status-text {
    font-size: 14px;
    color: #ddd;
    margin: 0 0 14px;
}

.um-user-call-signal {
    position: relative;
    height: 26px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.um-user-call-signal::before,
.um-user-call-signal::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.um-user-call-signal::before {
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.28), rgba(255, 20, 147, 0.9), rgba(255, 20, 147, 0.28));
}

.um-user-call-signal::after {
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd9ee, #ff1493 70%);
    box-shadow: 0 0 0 6px rgba(255, 20, 147, 0.12);
    animation: um-user-signal-travel 1.6s ease-in-out infinite;
}

.um-user-call-status-overlay.is-pending .um-user-call-signal::after {
    animation-play-state: paused;
    left: calc(100% - 20px);
    opacity: 0.65;
}

.um-user-call-status-overlay.is-connected .um-user-call-signal::after {
    animation-play-state: paused;
    left: calc(100% - 20px);
    opacity: 1;
}

.um-user-call-status-overlay.is-connected .um-user-call-signal::before {
    background: linear-gradient(90deg, rgba(120, 255, 160, 0.45), rgba(85, 230, 140, 1), rgba(120, 255, 160, 0.45));
}

.um-user-call-status-overlay.is-ended .um-user-call-signal::after {
    animation-play-state: paused;
    left: calc(100% - 20px);
    background: radial-gradient(circle at 35% 35%, #e7f7ea, #7ac58a 70%);
    box-shadow: 0 0 0 6px rgba(122, 197, 138, 0.12);
}

.um-user-call-status-overlay.is-ended .um-user-call-signal::before {
    background: linear-gradient(90deg, rgba(122, 197, 138, 0.35), rgba(122, 197, 138, 0.9), rgba(122, 197, 138, 0.35));
}

.um-user-call-status-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 20, 147, 0.58);
    box-shadow: 0 0 0 8px rgba(255, 20, 147, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-user-call-status-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.um-user-call-status-actions {
    display: none;
    justify-content: flex-end;
    margin-top: 12px;
}

.um-user-call-status-done {
    border: 1px solid rgba(255, 20, 147, 0.6);
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.96), rgba(255, 20, 147, 0.78));
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.um-user-call-status-overlay.is-ended .um-user-call-status-actions,
.um-user-call-status-overlay.is-failed .um-user-call-status-actions {
    display: flex;
}

@media (max-width: 480px) {
    .um-member-tagline-call_me.memberpopup {
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
    }

    .um-user-call-button-shared {
        width: min(100%, 220px);
        max-width: 220px;
        min-height: 44px;
        font-size: 12px;
        padding: 10px 12px;
        gap: 6px;
    }

    .um-user-call-status-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .um-user-call-status-avatar {
        margin: 0 auto;
    }
}

/* Customer Popup Button */
.customerpopup {
    background-color: hotpink;
    color: white;
    border-radius: 4px;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}

/* Callback Status */
.callback-expired {
    color: red;
    font-weight: bold;
    font-size: 14px;
}

/* Message Buttons */
.sendMessageExpiredCallback, #sendMessageBtn {
    background-color: hotpink;
    border-radius: 4px;
    width: 200px;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

#closePopupBtn {
    background-color: gray;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
}

/* Agreement Modal Buttons */
#agreementOkButton {
    background-color: hotpink;
    color: white;
    width: 200px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
}

#agreementCancelButton {
    background-color: gray;
    color: white;
    width: 200px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
}

/* Modal Content Styles */
#agreementModal .modal-content {
    background-color: whitesmoke;
    border: solid 1px purple;
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   MODERN PACKAGE SELECTION MODAL - RESPONSIVE
   HORIZONTAL LAYOUT WITH CHECKBOX CONFIRMATION
   ============================================ */

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Base Modal Styles - Fixed positioning prevents content shifting */
#timeOptionModal,
#timeOptionModalCustom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow-y: auto;
    backdrop-filter: blur(3px);
}

#timeOptionModal .modal-content,
#timeOptionModalCustom .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    max-width: 1000px; /* Wider for horizontal layout */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Header */
#timeOptionModal .modal-content p,
#timeOptionModalCustom .modal-content p {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
    position: relative;
}

#timeOptionModal .modal-content p::after,
#timeOptionModalCustom .modal-content p::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4 0%, #9c27b0 100%);
    border-radius: 3px;
}

/* Confirmation Checkbox Section */
.confirmation-checkbox-section {
    background: #fff9fc;
    border: 2px solid #ffd6e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.confirmation-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
}

.confirmation-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #ff69b4;
    border-radius: 4px;
}

.confirmation-checkbox:checked {
    background-color: #ff69b4;
}

/* Checkbox Instructions */
.checkbox-instructions {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Package Grid Layout - Horizontal Responsive */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8e8e8;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    opacity: 0.5;
    pointer-events: none;
}

/* Enable cards when checkbox is checked */
.confirmation-checkbox:checked ~ .package-grid .package-card {
    opacity: 1;
    pointer-events: auto;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: #ff69b4;
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.15);
}

.package-card.selected {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #fff5f9 0%, #f9f0ff 100%);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.2);
}

/* Package Duration */
.package-duration {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Package Pricing */
.package-price {
    margin-top: 8px;
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #9c27b0;
    line-height: 1.2;
}

/* Bottom Section */
.modal-bottom-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#timeOptionCancelButton {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
}

#timeOptionCancelButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(113, 128, 150, 0.2);
}

/* Per Minute Rate Special Card */
.per-minute-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border: 2px solid #c5d9e8;
}

.per-minute-card .package-duration {
    color: #2b6cb0;
}

.per-minute-card .price {
    color: #2b6cb0;
}

/* Responsive Adjustments for Package Modal */
@media (max-width: 1200px) {
    #timeOptionModal .modal-content,
    #timeOptionModalCustom .modal-content {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    #timeOptionModal .modal-content,
    #timeOptionModalCustom .modal-content {
        max-width: 95%;
        padding: 25px;
    }
    
    .package-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .package-card {
        min-height: 150px;
        padding: 20px 12px;
    }
    
    .package-duration {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    #timeOptionModal .modal-content,
    #timeOptionModalCustom .modal-content {
        width: 92%;
        padding: 25px 20px;
        top: 50%;
        transform: translate(-50%, -50%);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .package-card {
        min-height: 140px;
        padding: 18px 10px;
    }
    
    .package-duration {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 1.4rem;
    }
    
    #timeOptionModal .modal-content p,
    #timeOptionModalCustom .modal-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .package-card {
        min-height: 130px;
        padding: 16px 10px;
    }
    
    #timeOptionModal .modal-content p,
    #timeOptionModalCustom .modal-content p {
        font-size: 1.3rem;
    }
    
    .confirmation-checkbox-label {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}

/* Legacy Time Option Modal Styles (for backward compatibility) */
#timeOptionModal button,
#confirmationModal .modal-content {
    background-color: whitesmoke;
    border: solid 1px purple;
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
}

#timeOptionModal button {
    color: hotpink;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#timeOptionModal button:hover,
#confirmationModal button:hover {
    background-color: #fff5f9;
}

#confirmationModal button {
    background-color: hotpink;
    color: white;
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
}

#confirmationModal button {
    width: 48%;
    margin: 5px 1%;
}

#timeOptionModal .modal-content p,
#confirmationModal .modal-content p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px !important;
}

#timeOptionCancelButton {
    background-color: gray;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 600;
}

#timeOptionCancelButton:hover {
    background-color: #5a6268;
}

/* ============================================
   CALLBACK DASHBOARD CARDS
   ============================================ */

.smdb-callback-dashboard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.smdb-callback-dashboard-header {
    margin-bottom: 10px;
}

.smdb-callback-dashboard-header h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    color: #0f172a;
}

.smdb-callback-dashboard-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.smdb-callback-empty {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 0.85rem;
}

.smdb-callback-summary {
    display: flex;
    gap: 6px;
    margin: 0 0 10px;
}

.smdb-callback-summary-item {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.smdb-callback-summary-item span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.smdb-callback-summary-item strong {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1;
}

.smdb-callback-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.smdb-callback-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
}

.smdb-callback-card.is-expired {
    border-color: #fecaca;
    background: #fff9f9;
}

.smdb-callback-card.is-active {
    border-color: #bbf7d0;
    background: #f8fffb;
}

.smdb-callback-card.is-handled {
    border-color: #d1d5db;
    background: #f9fafb;
    opacity: 0.8;
}

.smdb-callback-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    margin-top: 3px;
}

.smdb-callback-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smdb-callback-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.smdb-callback-person-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
    min-width: 70px;
}

.smdb-callback-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.smdb-callback-person-meta strong {
    color: #0f172a;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smdb-callback-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.smdb-callback-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #475569;
    white-space: nowrap;
}

.smdb-callback-chip b {
    color: #0f172a;
    font-weight: 600;
}

.smdb-callback-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.smdb-callback-status-active {
    background: #dcfce7;
    color: #166534;
}

.smdb-callback-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.smdb-callback-status-handled {
    background: #e5e7eb;
    color: #374151;
}

.smdb-callback-rule {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.74rem;
    line-height: 1.4;
}

.smdb-callback-rule-warning {
    background: #fff7ed;
    color: #9a3412;
}

.smdb-callback-message-composer {
    border-top: 1px solid #f1f5f9;
    padding-top: 5px;
    margin-top: 2px;
}

.smdb-callback-message-composer summary {
    cursor: pointer;
    color: #c2185b;
    font-weight: 600;
    font-size: 0.78rem;
    user-select: none;
    display: list-item;
    list-style: none;
    outline: none;
}

.smdb-callback-message-composer summary::-webkit-details-marker {
    display: none;
}

.smdb-callback-message-composer summary::before {
    content: '▶ ';
    font-size: 0.7rem;
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.smdb-callback-message-composer[open] summary::before {
    transform: rotate(90deg);
}

.smdb-callback-message-composer > *:not(summary) {
    display: none;
}

.smdb-callback-message-composer[open] > *:not(summary) {
    display: block;
}

.smdb-callback-message-form {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smdb-callback-template-select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.smdb-callback-template-select:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 2px rgba(194, 24, 91, 0.1);
}

.smdb-callback-message-form textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    padding: 6px 8px;
    resize: vertical;
    font-size: 0.8rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.smdb-callback-message-form textarea:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 2px rgba(194, 24, 91, 0.1);
}

.smdb-callback-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.smdb-callback-message-submit {
    background: linear-gradient(135deg, #ff69b4 0%, #c2185b 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
}

.smdb-callback-message-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.smdb-callback-message-feedback {
    font-size: 0.75rem;
    line-height: 1.3;
}

.smdb-callback-message-feedback.is-success {
    color: #166534;
}

.smdb-callback-message-feedback.is-error {
    color: #b91c1c;
}

.smdb-callback-handled-note {
    color: #94a3b8;
    font-size: 0.72rem;
}

.smdb-callback-handle-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.smdb-callback-handle-submit {
    background: #334155;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.74rem;
    cursor: pointer;
}

.smdb-callback-handle-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.smdb-callback-handle-feedback {
    font-size: 0.72rem;
}

.smdb-callback-handle-feedback.is-success {
    color: #166534;
}

.smdb-callback-handle-feedback.is-error {
    color: #b91c1c;
}

.smdb-callback-unhandle-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.smdb-callback-unhandle-submit {
    background: #94a3b8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smdb-callback-unhandle-submit:hover {
    background: #78909c;
}

.smdb-callback-unhandle-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.smdb-callback-unhandle-feedback {
    font-size: 0.72rem;
}

.smdb-callback-unhandle-feedback.is-success {
    color: #166534;
}

.smdb-callback-unhandle-feedback.is-error {
    color: #b91c1c;
}

/* View Summary Button */
.smdb-callback-view-summary-btn {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    letter-spacing: 0.3px;
}

.smdb-callback-view-summary-btn:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
    background: linear-gradient(135deg, #f472b6 0%, #be185d 100%);
}

.smdb-callback-view-summary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Callback Summary Modal */
.smdb-callback-summary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.smdb-callback-summary-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.smdb-callback-summary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.smdb-callback-summary-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
}

.smdb-callback-summary-modal-close,
.smdb-callback-summary-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.smdb-callback-summary-modal-close:hover,
.smdb-callback-summary-modal-close-btn:hover {
    color: #1f2937;
}

.smdb-callback-summary-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.smdb-callback-summary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.smdb-callback-summary-content h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.smdb-callback-summary-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    padding: 12px;
    background: #f3f4f6;
    border-left: 3px solid #8b5cf6;
    border-radius: 4px;
}

.smdb-callback-summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.smdb-callback-summary-detail {
    padding: 10px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 0.85rem;
}

.smdb-callback-summary-detail strong {
    display: block;
    color: #6b7280;
    margin-bottom: 4px;
}

.smdb-callback-summary-detail span {
    color: #1f2937;
    font-weight: 500;
}

.smdb-callback-summary-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.smdb-callback-summary-modal-close-btn {
    background: #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: auto;
    height: auto;
}

.smdb-callback-summary-modal-close-btn:hover {
    background: #d1d5db;
}

@media (max-width: 600px) {
    .smdb-callback-dashboard {
        padding: 10px;
    }

    .smdb-callback-summary {
        flex-wrap: wrap;
    }

    .smdb-callback-card {
        flex-direction: column;
    }

    .smdb-callback-avatar {
        width: 28px;
        height: 28px;
    }
}


/* ============================================
   MEMBERS DIRECTORY MODALS
   ============================================ */

/* Charge Warning Modal */
.charge-warning-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.charge-warning-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    position: relative;
    z-index: 10000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.charge-warning-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
    cursor: pointer;
    z-index: 10001;
}

.charge-warning-close:hover,
.charge-warning-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.charge-warning-message {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Style for OK button */
.charge-warning-ok {
    background-color: hotpink;
    color: #fff;
    border-radius: 6px;
    padding: 12px 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
}

/* Style for Cancel button */
.charge-warning-cancel {
    background-color: gray;
    color: #fff;
    border-radius: 6px;
    padding: 12px 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
}

/* Time Option Modal Custom Styling */
.time-option-modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.time-option-modal-custom .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    margin-top: 5%;
    padding: 30px 25px;
    width: 290px;
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.time-option-modal-custom p {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
}

/* Style the time options links (legacy) */
a.timeOptionLinkCustom {
    display: block;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: hotpink;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    font-weight: 600;
    transition: all 0.3s ease;
}

a.timeOptionLinkCustom:hover {
    background: linear-gradient(135deg, #fff5f9 0%, #f9f0ff 100%);
    border-color: #ff69b4;
    transform: translateY(-2px);
}

/* Cancel link styling */
a#timeOptionCancelLinkCustom {
    display: block;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    font-weight: 600;
    transition: all 0.3s ease;
}

a#timeOptionCancelLinkCustom:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
}

/* Confirmation Modal Custom Styling */
.confirmation-modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.confirmation-modal-custom .modal-content {
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.confirmation-modal-custom p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #2d3748;
    line-height: 1.5;
}

/* Style the Yes/No buttons in confirmation modal */
a#confirmationYesLinkCustom, a#confirmationNoLinkCustom {
    color: #fff;
    display: inline-block;
    border-radius: 8px;
    padding: 12px 30px;
    margin: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a#confirmationYesLinkCustom {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
}

a#confirmationNoLinkCustom {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

a#confirmationYesLinkCustom:hover, a#confirmationNoLinkCustom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Basic modal close button styling */
#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #800080;
    font-size: 18px;
    cursor: pointer;
}

/* Charge Warning Modal */
#chargeWarningModal .modal-content {
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#chargeWarningModal p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.5;
}

#chargeWarningModal #okButton, #chargeWarningModal #cancelButton {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 30px;
    margin: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#chargeWarningModal #okButton {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
}

#chargeWarningModal #cancelButton {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

#chargeWarningModal #okButton:hover, #chargeWarningModal #cancelButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
#okButton {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
    padding: 12px 50px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#cancelButton {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    padding: 12px 50px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Legacy Link Styles (for backward compatibility) */
a.timeOptionLinkCustom {
    width: 250px;
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%) !important;
    padding: 12px 50px !important;
    color: white !important;
    border: none !important;
}

#confirmationYesLinkCustom {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
    padding: 12px 50px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

#confirmationNoLinkCustom {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    padding: 12px 50px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

/* Ensure the carousel wrapper does not constrain the modal */
.um-members-wrapper {
    position: relative;
    z-index: 1;
}

/* Modal's styles */
#chargeWarningModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    width: 80%;
    max-width: 600px;
}

.elementor-12 .elementor-element.elementor-element-cfd6b09 .elementor-headline {
    z-index: 0 !important;
    position: relative !important;
}

/* ============================================
   VOICEMAILS SECTION
   ============================================ */

/* Advisor Voicemails Styles */
.voicemail-list {
    background-color: whitesmoke;
    padding: 25px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.voicemail-entry {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #ff69b4;
    transition: all 0.3s ease;
}

.voicemail-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.15);
}

.customer-name {
    color: #ff69b4;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.file-name, .package-type, .voicemail-date {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    margin: 5px 0;
}

.voicemail-audio {
    display: block;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.no-voicemails {
    color: #ff69b4;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ff69b4;
}

.error-message {
    color: #dc3545;
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */

button:focus,
a:focus,
.package-card:focus,
.confirmation-checkbox:focus {
    outline: 2px solid #ff69b4;
    outline-offset: 2px;
}

/* ============================================
   CALLBACK DASHBOARD LOADERS
   ============================================ */

.smdb-callback-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    min-height: 60px;
}

.smdb-callback-spinner-mini {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #ff69b4;
    border-radius: 50%;
    animation: smdb-callback-spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes smdb-callback-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.smdb-callback-loader p {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.smdb-callback-message-feedback.showing-loader,
.smdb-callback-handle-feedback.showing-loader {
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* ============================================
   CALLBACK MESSAGE MODAL
   ============================================ */

.smdb-callback-message-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100010;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: slideIn 0.3s ease forwards;
}

.smdb-callback-message-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.smdb-callback-message-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.smdb-callback-message-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
}

.smdb-callback-message-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.smdb-callback-message-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.smdb-callback-message-form-modal {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smdb-callback-form-label {
    display: block;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.smdb-callback-template-select-modal {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #0f172a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smdb-callback-template-select-modal:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.smdb-callback-message-textarea-modal {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.smdb-callback-message-textarea-modal:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.smdb-callback-message-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.smdb-callback-message-submit-modal {
    padding: 9px 16px;
    background: linear-gradient(135deg, #ff69b4 0%, #c2185b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smdb-callback-message-submit-modal:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.3);
}

.smdb-callback-message-submit-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.smdb-callback-message-cancel-modal {
    padding: 9px 16px;
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smdb-callback-message-cancel-modal:hover {
    background: #cbd5e1;
}

.smdb-callback-message-feedback-modal {
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smdb-callback-message-feedback-modal.is-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.smdb-callback-message-feedback-modal.is-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.smdb-callback-message-feedback-modal.showing-loader {
    padding: 15px;
}

/* Modal animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Message button styling */
.smdb-callback-message-btn {
    padding: 8px 12px;
    background: #f0f4f8;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #c2185b;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.smdb-callback-message-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.smdb-callback-message-feedback.showing-loader,
.smdb-callback-handle-feedback.showing-loader {
    display: flex;
    justify-content: center;
    padding: 10px;
}
    outline-offset: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff69b4;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   CUSTOM SCROLLBAR FOR MODALS
   ============================================ */

#timeOptionModal .modal-content::-webkit-scrollbar,
#timeOptionModalCustom .modal-content::-webkit-scrollbar {
    width: 8px;
}

#timeOptionModal .modal-content::-webkit-scrollbar-track,
#timeOptionModalCustom .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#timeOptionModal .modal-content::-webkit-scrollbar-thumb,
#timeOptionModalCustom .modal-content::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
}

#timeOptionModal .modal-content::-webkit-scrollbar-thumb:hover,
#timeOptionModalCustom .modal-content::-webkit-scrollbar-thumb:hover {
    background: #e055a0;
}

/* ============================================
   MODAL CLOSE BUTTON
   ============================================ */

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close-button:hover {
    background: #ff69b4;
    color: white;
    transform: rotate(90deg);
}

/* ============================================
   CONFIRMATION MODAL STYLES
   ============================================ */

#confirmationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100000; /* Higher than time option modal */
    overflow-y: auto;
    backdrop-filter: blur(3px);
}

#confirmationModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#confirmationModal .modal-content p {
    font-size: 1.4rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.5;
    padding: 0 10px;
}

/* Confirmation Buttons Container */
#confirmationModal .modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* Confirmation Button Styles */
#confirmationModal button {
    flex: 1;
    max-width: 180px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Yes Button */
#confirmationYesButton {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
    color: white;
}

#confirmationYesButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 105, 180, 0.25);
}

/* No Button */
#confirmationNoButton {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
}

#confirmationNoButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(113, 128, 150, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    #confirmationModal .modal-content {
        max-width: 90%;
        padding: 30px 25px;
        width: 85%;
    }
    
    #confirmationModal .modal-content p {
        font-size: 1.3rem;
    }
    
    #confirmationModal .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    #confirmationModal button {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #confirmationModal .modal-content {
        padding: 25px 20px;
        width: 90%;
    }
    
    #confirmationModal .modal-content p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal close button for confirmation modal */
.confirmation-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.confirmation-close-button:hover {
    background: #ff69b4;
    color: white;
    transform: rotate(90deg);
}

/* Ensure the modal appears above all other content */
#confirmationModal * {
    box-sizing: border-box;
}

/* Optional: Add a subtle border to make the modal stand out */
#confirmationModal .modal-content {
    border: 1px solid rgba(255, 105, 180, 0.2);
}