@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

#mhai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Chat Bubble Popup */
#mhai-chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    padding: 18px 22px;
    max-width: 280px;
    animation: bubbleSlideIn 0.5s ease-out;
    z-index: 999998;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes bubbleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mhai-bubble-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhai-bubble-text {
    flex: 1;
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mhai-bubble-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    font-weight: 700;
}

.mhai-bubble-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#mhai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mhai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

#mhai-chat-button svg {
    width: 28px;
    height: 28px;
}

#mhai-chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: calc(100vh - 130px); /* Dynamic height based on viewport */
    max-height: calc(100vh - 130px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: visible;
}

#mhai-chat-window.open {
    display: flex;
}

#mhai-chat-header {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.mhai-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mhai-header-bottom {
    display: flex;
    justify-content: flex-end; /* Right align the transfer button */
}

.mhai-header-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    display: inline-block !important;
}

.mhai-header-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.mhai-header-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.mhai-header-btn.unavailable {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    cursor: default !important;
    opacity: 0.7 !important;
}

.mhai-header-btn.unavailable:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mhai-header-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap; /* Keep "Mile High Networks" on one line */
}

.mhai-header-content p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

#mhai-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#mhai-chat-close:hover {
    opacity: 1;
}

#mhai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.mhai-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.mhai-message.user {
    align-items: flex-end;
}

.mhai-message.assistant {
    align-items: flex-start;
}

.mhai-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
}

.mhai-message.user .mhai-message-content {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.mhai-message.assistant .mhai-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mhai-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding: 0 8px;
}

#mhai-chat-input-area {
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 16px 16px;
    overflow: visible;
}

#mhai-address-input-wrapper {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

#mhai-address-label {
    font-size: 12px;
    font-weight: 600;
    color: #1e88e5;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#mhai-address-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: all 0.3s ease;
}

#mhai-address-input-container:hover {
    border-color: #1e88e5;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.15);
}

#mhai-address-input-container.focused {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

#mhai-address-input {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: transparent;
}

#mhai-address-input::placeholder {
    color: #999;
}

#mhai-address-submit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#mhai-address-submit:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

#mhai-address-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
}

/* Google autocomplete dropdown styling - FORCE on top with max z-index */
.pac-container {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    border: 1px solid #e0e0e0 !important;
    margin-top: 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    z-index: 2147483647 !important;
    position: fixed !important;
    pointer-events: auto !important;
    background: white !important;
}

.pac-container:after {
    content: none !important;
    display: none !important;
}

.pac-item {
    cursor: pointer !important;
    padding: 8px !important;
}

.pac-item:hover {
    background-color: #f0f0f0 !important;
}

.pac-item {
    padding: 10px 12px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background: #f8f9fa;
}

.pac-icon {
    margin-top: 4px;
}

.pac-item-query {
    font-weight: 600;
    color: #333;
}

#mhai-transfer-bar {
    padding: 12px 20px;
    background: #fff3cd;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

#mhai-transfer-bar p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #856404;
}

#mhai-transfer-button {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

#mhai-transfer-button:hover {
    background: #ffb300;
}

#mhai-chat-input-wrapper {
    display: flex;
    padding: 12px 20px;
    gap: 12px;
    align-items: flex-end;
}

#mhai-chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

#mhai-chat-input:focus {
    border-color: #1e88e5;
}

#mhai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

#mhai-chat-send:hover {
    transform: scale(1.05);
}

#mhai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mhai-typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mhai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.mhai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.mhai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.mhai-pricing-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mhai-pricing-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

/* Scroll Down Indicator */
.mhai-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin: 10px 0 15px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    animation: pulseGlow 2s ease-in-out infinite;
}

.mhai-scroll-indicator svg {
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* Plan Cards */
.mhai-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.mhai-plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.mhai-plan-card.popular {
    border-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.mhai-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mhai-plan-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.mhai-plan-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mhai-plan-speed {
    font-size: 18px;
    font-weight: 600;
    color: #1e88e5;
    margin: 5px 0 2px 0;
}

.mhai-plan-upload {
    font-size: 18px;
    font-weight: 600;
    color: #1e88e5;
    margin: 2px 0 10px 0;
}

.mhai-plan-desc {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    line-height: 1.4;
}

.mhai-plan-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
}

.mhai-plan-price span {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.mhai-plan-select {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    min-width: 120px;
    font-size: 13px;
    margin: 0 auto;
    display: block;
}

.mhai-plan-select:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.mhai-plans-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #mhai-chat-window {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    #mhai-chat-button {
        bottom: 15px;
        right: 15px;
    }
    
    .mhai-plan-cards {
        grid-template-columns: 1fr;
    }
    
    #mhai-address-input-wrapper {
        padding: 10px 12px;
    }
    
    #mhai-address-input {
        font-size: 14px;
    }
}

/* Scrollbar styling */
#mhai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#mhai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#mhai-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#mhai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Appointment Scheduling Styles */
.mhai-scheduling-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.mhai-scheduling-header {
    margin-bottom: 20px;
}

.mhai-scheduling-header h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.mhai-scheduling-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.mhai-calendar-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.mhai-calendar-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
}

.mhai-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.mhai-calendar-prev,
.mhai-calendar-next {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mhai-calendar-prev:hover,
.mhai-calendar-next:hover {
    background: #2563eb;
}

.mhai-calendar-prev:disabled,
.mhai-calendar-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.mhai-calendar-week-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-align: center;
    flex: 1;
}

.mhai-calendar-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Show 2 days at a time */
    gap: 10px;
}

.mhai-calendar-day {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    min-height: 140px;
}

.mhai-calendar-day.holiday {
    background: #fee2e2;
    border-color: #fca5a5;
}

.mhai-day-header {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    line-height: 1.4;
}

.mhai-day-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.mhai-day-month {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 2px;
}

.mhai-day-date {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 2px;
}

.mhai-time-slot {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 4px;
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
    color: #1e40af;
    font-weight: 500;
}

.mhai-time-slot:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.mhai-time-slot.selected {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

.mhai-holiday-notice {
    padding: 8px;
    text-align: center;
    color: #dc2626;
    font-size: 11px;
    font-style: italic;
}

.mhai-continue-btn {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.mhai-continue-btn:hover {
    background: #2563eb;
}

.mhai-continue-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.mhai-selected-appointment {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.mhai-selected-appointment-label {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 4px;
}

.mhai-selected-appointment-value {
    font-size: 14px;
    color: #15803d;
    font-weight: 500;
}

.mhai-pause-message {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
    color: #92400e;
}

.mhai-resume-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mhai-resume-btn {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.mhai-resume-btn:hover {
    background: #2563eb;
}

/* Customer Info Form Styles (Phase 2) */
.mhai-customer-form-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.mhai-form-header {
    margin-bottom: 20px;
}

.mhai-form-header h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.mhai-form-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.mhai-form-group {
    margin-bottom: 16px;
}

.mhai-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.mhai-form-group input,
.mhai-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mhai-form-group input:focus,
.mhai-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.mhai-form-group input:read-only {
    background: #f3f4f6;
    color: #6b7280;
}

.mhai-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.mhai-form-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Price Review Styles */
.mhai-price-review-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.mhai-order-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.mhai-order-summary h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.mhai-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.mhai-summary-row:last-child {
    border-bottom: none;
}

.mhai-summary-row.total-due {
    font-weight: 700;
    font-size: 16px;
    color: #1e40af;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #d1d5db;
}

.mhai-summary-row.total-due .mhai-summary-label {
    color: #1e40af;
}

.mhai-summary-row.total-due .mhai-summary-value {
    color: #1e40af;
    font-weight: 700;
}

.mhai-summary-row.monthly-charge {
    font-weight: 700;
    font-size: 16px;
    color: #059669;
    padding-top: 8px;
    border-bottom: none;
}

.mhai-summary-row.monthly-charge .mhai-summary-label {
    color: #059669;
}

.mhai-summary-row.monthly-charge .mhai-summary-value {
    color: #059669;
    font-weight: 700;
}

/* Old total class for backward compatibility */
.mhai-summary-row.total {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #d1d5db;
}

.mhai-summary-label {
    color: #6b7280;
}

.mhai-summary-value {
    color: #1f2937;
    font-weight: 600;
}

.mhai-summary-value.discount {
    color: #059669;
}

.mhai-coupon-section {
    margin-bottom: 20px;
}

.mhai-coupon-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.mhai-coupon-input-group {
    display: flex;
    gap: 8px;
}

.mhai-coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.mhai-coupon-input-group button {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.mhai-coupon-input-group button:hover {
    background: #2563eb;
}

.mhai-coupon-input-group button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.mhai-coupon-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.mhai-coupon-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.mhai-coupon-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.mhai-appointment-summary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.mhai-appointment-summary strong {
    display: block;
    color: #1e40af;
    font-size: 13px;
    margin-bottom: 6px;
}

.mhai-appointment-summary p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    font-weight: 500;
}

.mhai-submit-btn {
    width: 100%;
    padding: 14px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.mhai-submit-btn:hover {
    background: #047857;
}

.mhai-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.mhai-order-success-box {
    background: linear-gradient(to bottom, #d1fae5 0%, #ecfdf5 100%);
    border: 3px solid #10b981;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
}

.mhai-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.mhai-success-title {
    margin: 0 0 16px 0;
    color: #059669;
    font-size: 36px;
    font-weight: 700;
}

.mhai-success-subtitle {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 400;
}

.mhai-success-message {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

/* Old success styles for backward compatibility */
.mhai-order-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.mhai-order-success h3 {
    margin: 0 0 12px 0;
    color: #065f46;
    font-size: 20px;
}

.mhai-order-success p {
    margin: 8px 0;
    color: #047857;
    font-size: 14px;
}

.mhai-order-success .order-number {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    margin: 16px 0;
}


