

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.image-attribution {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 9px;
    backdrop-filter: blur(4px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .image-attribution:hover {
        opacity: 1;
    }

    .image-attribution a {
        color: #93c5fd;
        text-decoration: none;
    }

        .image-attribution a:hover {
            color: #dbeafe;
            text-decoration: underline;
        }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.why-choose-us .carousel-indicators button {
    background-color: var(--accent-color);
}

.why-choose-us .carousel-control-next-icon,
.why-choose-us .carousel-control-prev-icon {
    background-color: var(--accent-color);
    border-radius: 12px;
    width: 40px;
    height: 50px;
}

    .why-choose-us .carousel-control-next-icon::after,
    .why-choose-us .carousel-control-prev-icon::after {
        display: none;
    }

.why-choose-us .beforeAfterContainer img-comparison-slider {
    --divider-width: 3px !important;
}

    .why-choose-us .beforeAfterContainer img-comparison-slider img {
        width: 550px;
        object-fit: cover;
    }

@media (max-width: 1536px) and (max-height: 864px) {
    .why-choose-us .beforeAfterContainer img-comparison-slider img {
        width: 300px;
        object-fit: cover;
    }
}

.why-choose-us .beforeAfterContainer img-comparison-slider .before,
.why-choose-us .beforeAfterContainer img-comparison-slider .after {
    margin: 0;
}

    .why-choose-us .beforeAfterContainer img-comparison-slider .before figcaption,
    .why-choose-us .beforeAfterContainer img-comparison-slider .after figcaption {
        background: #fff;
        border: 1px solid #c0c0c0;
        border-radius: 12px;
        color: #2e3452;
        opacity: 0.8;
        padding: 12px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        line-height: 100%;
    }

    .why-choose-us .beforeAfterContainer img-comparison-slider .before figcaption {
        left: 12px;
    }

    .why-choose-us .beforeAfterContainer img-comparison-slider .after figcaption {
        right: 12px;
    }

.why-choose-us .beforeAfterContainer img-comparison-slider .custom-animated-handle {
    transition: transform 0.2s;
}

.why-choose-us .beforeAfterContainer img-comparison-slider.slider-with-animated-handle:hover .custom-animated-handle {
    transform: scale(1.2);
}

input[type="file"] {
    position: relative;
    font-size: 16px;
    color: #5a5a5a;
    padding: 0 0 0 6px;
    border-radius: 6px;
}

.form-control[type="file"] {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

    .form-control[type="file"]:hover {
        border-color: #adb5bd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }


    /* Style the file input button */
    .form-control[type="file"]::file-selector-button {
        padding: 0.375rem 0.75rem;
        margin-right: 1rem;
        margin-left: -0.375rem;
        color: #fff;
        background-color: #0d6efd;
        border: 0;
        border-radius: 0.25rem;
        transition: all 0.2s ease-in-out;
        font-weight: 500;
    }

        .form-control[type="file"]::file-selector-button:hover {
            background-color: #0b5ed7;
        }

/* Additional styles for appointment booking system */

/* Basic validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    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);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

    .alert-danger h5 {
        color: #721c24;
        margin-bottom: 0.5rem;
    }

.alert ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Enhance existing appointment form styles */
.appointment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 115, 223, 0.25);
}

.appointment-form .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    color: #dc3545;
}

/* Form group spacing for validation */
.appointment-form .form-group {
    position: relative;
    margin-bottom: 1rem;
}

/* Status badge styles for admin panel */
.badge-lg {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Appointment table enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    color: #5a5c69;
    background-color: #f8f9fc;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Quick action buttons */
.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Success page styles */
.page-book-appointment .alert-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

    .page-book-appointment .alert-success .alert-heading {
        color: white;
    }

/* Loading state for submit button */
.btn-default:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Admin dashboard card enhancements */
.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .page-book-appointment .book-appointment-form {
        padding: 20px;
        margin: 0 15px;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animation for form submission */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-default.processing {
    animation: pulse 1.5s infinite;
}

/* Honeypot field - ensure it's completely hidden */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Phone number input styling */
input[type="tel"] {
    font-family: monospace;
}

/* Validation animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

/* Ensure validation messages are visible */
.text-danger, .invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

.iti {
    width: 100%;
}