/* Base Styles & Variables */
:root {
  --primary-color: #2a7fba;
  --secondary-color: #1a5276;
  --accent-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #777;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  
}

section {
  padding: 5rem 0;
}

/* Header/Hero Section */
.hero {
  background: linear-gradient(rgba(51, 72, 77, 0.7), rgba(56, 54, 81, 0.7)), url('../images/clinic.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 8rem 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.25rem;
}

.specialization {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.qualifications span {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* About Section */
.about-section {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qualifications-list {
  margin: 1.5rem 0;
  list-style-position: inside;
}

.qualifications-list li {
  margin-bottom: 0.8rem;
}

/* Clinics Section */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.clinic-card {
  background: hwb(126 80% 0%);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.clinic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.clinic-address, .clinic-contact {
  margin: 1rem 0;
}

.clinic-contact i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.timing-list li {
  margin-bottom: 0.5rem;
  list-style: none;
}

/* Gallery Section */
/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}


/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .specialization {
    font-size: 1.2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
}
/* Date Picker Styles */


 /* Appointment Section */
.appointment-section {
  padding: 4rem 0;
  background: #ffffff;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #b3e2ff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #2a7fba;
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.validation-icon {
  position: absolute;
  right: 10px;
  top: 38px;
  font-size: 1.2rem;
  display: none;
}

.validation-icon.valid {
  display: block;
  color: #28a745;
}

.validation-icon.invalid {
  display: block;
  color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.validate-btn {
  background: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  animation: pulse 2s infinite;
}

.validate-btn.validated {
  background: #6c757d;
  opacity: 0.6;
  animation: none;
}

.submit-btn {
  background: #2a7fba;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #1a5276;
}

.submit-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== NEW STATUS MESSAGE STYLES ===== */
#form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 5px;
  display: none;
  font-weight: 500;
  position: relative;
  animation: fadeIn 0.5s;
}

#form-status.success {
  background: #e8f5e9;
  color: #155724;
  border-left: 4px solid #28a745;
  display: block;
}

#form-status.error {
  background: #ffebee;
  color: #721c24;
  border-left: 4px solid #dc3545;
  display: block;
}

.success-message,
.error-message {
  display: flex;
  gap: 15px;
  align-items: center;
}

.success-message i {
  color: #4caf50;
  font-size: 2rem;
}

.error-message i {
  color: #f44336;
  font-size: 2rem;
}

.success-message h3,
.error-message h3 {
  margin-bottom: 0.5rem;
  color: inherit;
}

.success-message p,
.error-message p {
  margin-bottom: 0.5rem;
}

.error-message small {
  color: #d32f2f;
  font-size: 0.8em;
  opacity: 0.8;
}

/* ===== LOADING ANIMATIONS ===== */
.loading-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* ===== KEYFRAMES ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== HERO BUTTON GLOW ===== */
.hero .btn {
  animation: pulse-glow 1.5s infinite;
  box-shadow: 0 0 15px #2a7fbacc;
  position: relative;
  z-index: 1;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px #2a7fbacc; }
  50% { box-shadow: 0 0 10px #2a7fbacc, 0 0 20px #00f9f599; }
  100% { box-shadow: 0 0 10px #2a7fbacc; }
}

/* ===== DEVELOPER CREDIT ===== */
.developer-credit {
  text-align: center;
  padding: 0.5rem;
  background-color: var(--dark-color);
  color: hsl(0, 0%, 40%);
  font-size: 0.5rem;
}

.developer-credit strong {
  color: #2a6c9f89;
}

@media (max-width: 320px) {
  .form-container {
    padding: 1rem;
  }
  .btn {
    width: 100%;
  }
}
