/* Modern, eye-friendly color palette */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a8a4e9;
    --accent-color: #00cec9;
    --light-bg: #f7f9fc;
    --dark-bg: #2d3436;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --white: #ffffff;
    --shadow: rgba(149, 157, 165, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

/* Core styles */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a8a4e9;
    --accent-color: #00cec9;
    --light-bg: #f7f9fc;
    --dark-bg: #2d3436;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --white: #ffffff;
    --shadow: rgba(149, 157, 165, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px var(--shadow);
    padding: 1rem 0;
}

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

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient);
    padding: 120px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-section h1 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    position: relative;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    height: 100%;
    box-shadow: 0 5px 15px var(--shadow);
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.service-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

h1 {
  color: #111;
  text-align: center;
  margin: 30px 0 15px;
  font-size: 2.5rem;
}

h3 {
  margin-top: 40px;
  color: #222;
  border-left: 5px solid #f4c542;
  padding-left: 10px;
  text-align: center;
  font-size: 30px;
}

/* Booking Form */
.appointment-form {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 2rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,206,201,0.1);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Form validation styles */
.was-validated .form-control:valid {
    border-color: #00b894;
}

.was-validated .form-control:invalid {
    border-color: #ff7675;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #f4c542;
  outline: none;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108,92,231,0.2);
}

.btn-outline-secondary {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Summary Section */
.summary-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-bg);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    color: var(--text-secondary);
    border-color: rgba(0,0,0,0.05);
    padding: 1rem;
    vertical-align: middle;
}

.table tr:hover td {
    background-color: var(--light-bg);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.3s ease-out forwards;
    will-change: opacity, transform;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .appointment-form,
    .summary-section {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .btn-primary,
    .btn-outline-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Hide default checkbox */
.switch-btn input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider design */
.slider-btn {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}

.slider-btn:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

/* Checked state */
.switch-btn input:checked + .slider-btn {
  background-color: #2196F3;
}

.switch-btn input:checked + .slider-btn:before {
  transform: translateX(16px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    color: var(--white);
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

.newsletter input[type="email"] {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.newsletter button {
  padding: 10px 20px;
  border: none;
  background: #555;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer blocks */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.footer-info {
    padding-right: 2rem;
}

.footer h4 {
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer ul li i {
    color: var(--accent-color);
    width: 20px;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

/* Enhanced Opening Hours styling */
.opening-hours i {
    color: var(--accent-color);
    width: 20px;
}

.opening-hours .fa-ban {
    color: #ff6b6b;  /* Red color for closed day */
}

.social-icons a {
  margin: 0 8px;
  text-decoration: none;
  color: inherit;
  font-size: 20px;
}

/* Footer container */
footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
  text-align: left;
}

.footer-col {
  flex: 1;
  min-width: 150px;
  padding: 10px;
}

.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Logo style */
.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

.footer-logo span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #aaa;
}

/* Social icons */
.social-icons {
  margin: 20px 0;
}

.social-icons a {
  color: #ccc;
  margin: 0 10px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

/* Copyright */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
  color: #777;
}

.appointment-form {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.summary-section {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(52,152,219,.25);
}

.btn-primary {
  background: var(--accent-color);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-outline-secondary {
  border-radius: 10px;
}

.table {
  border-radius: 10px;
  overflow: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  margin: 0 auto;
  will-change: transform;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide old form styles */
form, label, input, select, textarea, button {
  box-shadow: none !important;
}
