/* Custom Styles for Orafit Dental Enhancements */

/* Booking Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 30px;
}

/* Booking modal form button fixes */
.modal-body .form-group .btn-main {
    width: auto !important;
    max-width: 200px !important;
    min-width: 150px !important;
    padding: 12px 24px !important;
    text-align: center;
    display: inline-block !important;
    box-sizing: border-box;
}

.modal-body .text-center .btn-main {
    margin: 0 auto;
    display: inline-block !important;
    width: auto !important;
}

/* Booking form layout fixes */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .text-center {
    margin-top: 2rem;
}

/* Fix button sizing issues */
.modal .btn-main {
    min-width: 150px;
    max-width: 200px;
    width: auto !important;
    height: auto;
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block !important;
    box-sizing: border-box;
}

/* Quiz button fixes */
#quiz-container .btn,
#quiz-container .btn-main {
    min-width: 120px;
    max-width: 180px;
    width: auto !important;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block !important;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Navigation button containers */
.d-flex .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 150px;
}

/* Prevent button expansion on click/focus */
.btn:focus,
.btn:active,
.btn-main:focus,
.btn-main:active {
    width: auto !important;
    max-width: 200px !important;
    transform: none !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(109, 173, 156, 0.25) !important;
}

/* Form validation styles */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
}

/* Button Enhancements */
.btn-outline {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Membership Plans Styling */
.price {
    color: var(--primary-color, #007bff);
}

.price .fs-16 {
    color: #666;
    font-weight: normal;
}

/* Loyalty Program Styles */
.loyalty-card img {
    max-height: 300px;
    object-fit: cover;
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-number {
    font-size: 1.5rem;
}

.progress-bar {
    transition: width 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}

.form-check-label {
    cursor: pointer;
    padding-left: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color, #007bff);
    color: white;
}

/* Quiz specific button navigation fixes */
#quiz-questions .d-flex {
    align-items: center;
}

#quiz-questions .btn {
    flex-shrink: 0 !important;
    min-width: 100px !important;
    max-width: 140px !important;
}

#quiz-questions #prev-btn {
    margin-right: 15px;
}

#quiz-questions #next-btn {
    margin-left: 15px;
}

#question-counter {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #666;
}

/* Validation error styling for quiz */
#validation-error {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Styles */
.category-filter {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.product-item {
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* App Page Styles */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Testimonials Enhancement */
.de_testi_by img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonials-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Toast Notifications */
.toast {
    min-width: 300px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .modal-body {
        padding: 20px;
    }
    
    .btn-outline {
        margin-bottom: 5px;
    }
    
    .product-item {
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Health Guide Popup */
.modal .w-80px {
    width: 80px !important;
}

/* Icon Enhancements */
.fs-48 {
    font-size: 48px !important;
}

.fs-36 {
    font-size: 36px !important;
}

.fs-32 {
    font-size: 32px !important;
}

.fs-24 {
    font-size: 24px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-16 {
    font-size: 16px !important;
}

/* Card Hover Effects */
.hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animation Delays for Better UX */
.wow[data-wow-delay] {
    animation-fill-mode: both;
}

/* Custom Color Variables */
:root {
    --primary-color: #6DAD9C;
    --secondary-color: #24423a;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
}

.border-radius-10 {
    border-radius: 10px !important;
}

.shadow-lg-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-lg-hover:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Global button stability fixes */
.btn, .btn-main, button, input[type="button"], input[type="submit"] {
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Prevent any transform or size changes on button states */
.btn:hover, .btn:focus, .btn:active,
.btn-main:hover, .btn-main:focus, .btn-main:active {
    transform: none !important;
    width: auto !important;
    max-width: inherit !important;
}

/* Override any conflicting bootstrap or theme styles */
.modal .btn, .modal .btn-main,
#quiz-container .btn, #quiz-container .btn-main {
    flex: none !important;
    width: auto !important;
    min-width: fit-content !important;
    max-width: 200px !important;
}
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF !important;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    text-decoration: none !important;
}

.whatsapp-float i {
    margin-top: 0;
    line-height: 1;
    color: #FFF !important;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 15px;
        font-size: 26px;
        z-index: 9999;
    }
}

/* Ensure visibility on all devices */
@media screen and (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 15px;
        font-size: 24px;
    }
}
