/* Custom CSS for Dentures & More Website */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #3179e6;
    --secondary-color: #0883c0;
    --gradient-start: #0883c0;
    --gradient-end: #08b4c0;
    --light-bg: #f8f9fa;
    --dark-bg: #333;
}

/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.tooth-icon {
    display:inline-flexbox;
    width:120px;
    height:150px;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Logo Styles */
.navbar-logo {
    height: 100px;
    width: 270px;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #8BC34A 0%, #2196F3 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* Square Booking Integration Styles */

/* Booking container styling */
#square-booking-container {
    min-height: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
}

/* Loading message styling */
.loading-message {
    padding: 60px 20px;
}

.loading-message .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Square widget iframe styling (when it loads) */
#square-booking-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    min-height: 600px;
}

/* Alternative contact section styling */
.appointment-section .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.appointment-section h5 {
    font-weight: 600;
}

.appointment-section .bi {
    font-size: 1.2rem;
}

/*Appointment section Styling*/

/* Time input validation styles */
#time.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'><path d='M13.854 3.646a.5.5 0 0 1 0 .708L8.5 9.707l-2.146-2.147a.5.5 0 0 1 .708-.708L8.5 8.293l4.646-4.647a.5.5 0 0 1 .708 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

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

/* Enhanced invalid feedback styling */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
    animation: fadeInError 0.3s ease-out;
}

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

/* Enhanced invalid form control styling */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'><path d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/></svg>");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

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

/* Valid form control styling */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'><path d='M13.854 3.646a.5.5 0 0 1 0 .708L8.5 9.707l-2.146-2.147a.5.5 0 0 1 .708-.708L8.5 8.293l4.646-4.647a.5.5 0 0 1 .708 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

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

/* Help text styling */
.form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-text .text-muted {
    font-size: 0.8rem;
    color: #6c757d;
}

.form-text .bi {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Placeholder styling for time input */
#time::placeholder {
    color: #adb5bd;
    font-style: italic;
    opacity: 0.8;
}

/* Focus state enhancement for all form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(49, 121, 230, 0.25);
    outline: 0;
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.form-control.shake,
.form-select.shake {
    animation: shake 0.5s ease-in-out;
}

/* Enhanced styling for required field indicators */
.required-field-highlight {
    background-color: rgba(220, 53, 69, 0.05);
    border-left: 3px solid #dc3545;
    padding-left: 10px;
    margin-left: -10px;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

/* Alert styling for validation errors */
.alert-danger {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    animation: slideInDown 0.3s ease-out;
}

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

/* Success alert styling */
.alert-success {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    animation: slideInDown 0.3s ease-out;
}

/* Form label styling with required asterisks */
.form-label .text-danger {
    font-weight: bold;
    margin-left: 2px;
}

/* Responsive adjustments for validation */
@media (max-width: 768px) {
    .form-text .text-muted {
        font-size: 0.75rem;
    }
    
    #time::placeholder {
        font-size: 0.9rem;
    }
    
    .invalid-feedback {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .form-text .text-muted {
        font-size: 0.7rem;
    }
    
    .invalid-feedback {
        font-size: 0.75rem;
        margin-top: 0.125rem;
    }
}

/* Enhanced form group spacing */
.mb-3 .form-control,
.mb-3 .form-select {
    margin-bottom: 0;
}

.mb-3 .invalid-feedback {
    margin-bottom: 0.5rem;
}

.mb-3 .form-text {
    margin-bottom: 0.25rem;
}

/* Smooth transitions for all form elements */
.form-control,
.form-select {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-image 0.15s ease-in-out;
}

/* Custom styling for the appointment form specifically */
#appointmentForm .form-control.is-invalid,
#appointmentForm .form-select.is-invalid {
    border-width: 2px;
    background-color: rgba(220, 53, 69, 0.02);
}

#appointmentForm .form-control.is-valid,
#appointmentForm .form-select.is-valid {
    border-width: 2px;
    background-color: rgba(40, 167, 69, 0.02);
}

/* Enhanced button states for validation */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}




/* Responsive adjustments for booking widget */
@media (max-width: 768px) {
    #square-booking-container {
        padding: 15px;
        min-height: 450px;
    }
    
    #square-booking-container iframe {
        min-height: 500px;
    }
    
    .loading-message {
        padding: 40px 15px;
    }
}

@media (max-width: 576px) {
    #square-booking-container {
        padding: 10px;
        min-height: 400px;
    }
    
    #square-booking-container iframe {
        min-height: 450px;
    }
}

/* Enhance the appointment section background */
#appointment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Style the card containing the booking widget */
#appointment .card {
    border-radius: 20px;
    overflow: hidden;
}

#appointment .card-body {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px !important;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid var(--primary-color) !important;
}
/*Services Section */
.service-icon {
    height: 150px;
    width:280px;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Additional styles for Other Services modal */
.service-detail-content .price-badge {
    text-align: center;
}

.service-detail-content .service-features h6 {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.service-detail-content .ideal-for-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Other Services specific styles */
.service-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item h6 {
    margin-bottom: 8px;
    font-weight: 600;
}

.service-item .small {
    color: #6c757d;
    line-height: 1.4;
}

.service-icon .small {
    height: 100px;
    width: 240px;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: transform 0.3s ease;
}
/* Make the modal larger for Other Services to accommodate the grid */
.modal-dialog {
    max-width: 600px;
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 700px;
    }
}

/* Responsive adjustments for Other Services grid */
@media (max-width: 576px) {
    .service-detail-content .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* About Section */
.about-image {
    background: none;
    height: 350px;
    width: 420px;
    display: flex;
    align-items: right;
    justify-content: right;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-control,
.form-select {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}

/* Button Styles */
.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-danger:hover {
    background-color: #191970;
    border-color: #191970;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Section Spacing */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3d6f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .tooth-animation {
        display: none;
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

/* Loading Animation for Service Cards */
.service-card {
    transition: all 0.6s ease;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Modal Customizations */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Success Message */
.alert-success {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Footer Icons */
.bi {
    transition: transform 0.3s ease;
}

.bi:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Map Container Styles */
.map-container {
    position: relative;
    height:auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-container iframe {
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: brightness(1.1);
}

/* Footer Enhancements */
footer .bi {
    transition: all 0.3s ease;
}

footer .bi:hover {
    transform: scale(1.3);
    color: var(--secondary-color) !important;
    cursor: pointer;
}

/* Footer Map Button */
.btn-outline-light {
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Map in Footer */
@media (max-width: 768px) {
    .map-container iframe {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .map-container iframe {
        height: 100px;
    }
}

/* Utility Classes */
.bg-primary {
    background: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Adobe PDF Integration Styles */

/* PDF Form Container */
#pdfFormContainer {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adobe DC View Container */
#adobe-dc-view {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
    height: 700px;
}

/* PDF iframe styling */
#pdfIframe {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card header with PDF controls */
.card-header .btn-outline-light {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* PDF form footer buttons */
.card-footer .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 500;
}

.card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-footer .btn-success:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.card-footer .btn-outline-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.card-footer .btn-outline-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Loading state for PDF */
#adobe-dc-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Hide loading spinner when PDF is loaded */
#adobe-dc-view iframe,
#adobe-dc-view > div {
    position: relative;
    z-index: 2;
}

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

/* Form card enhancements */
.form-section .card,
#pdfFormContainer .card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-section .card:hover,
#pdfFormContainer .card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* Modal overlay styles for instructions */
.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal .list-group-numbered .list-group-item {
    border: none;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive adjustments for PDF viewer */
@media (max-width: 768px) {
    #adobe-dc-view,
    #pdfIframe {
        height: 600px;
    }
    
    .card-footer .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .card-footer .row > div {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    #adobe-dc-view,
    #pdfIframe {
        height: 500px;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .card-header .btn-outline-light {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Enhanced form selection cards */
.card.h-100 {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card.h-100:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card.h-100 .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 600;
}

.card.h-100 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Instructions section styling */
.card.border-0.shadow-sm h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

/* Success message enhancement */
.alert-success {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Error message enhancement */
.alert-danger {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Footer link styling */
footer .copyright-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

footer .copyright-link:hover,
footer .copyright-link:focus,
footer .copyright-link:visited,
footer .copyright-link:active {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 0.8;
}


/* PDF Viewer Styling */
.pdf-viewer-container {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    height: 800px;
}

