/* =========================================
   APPOINTMENT PAGE STYLES
   ========================================= */

:root {
  --color-primary: #5d35b9; /* Purple */
  --color-secondary: #ff853f; /* Orange */
  --accent-blue: #007bff; /* Blue */
  --color-dark: #343a40;
  --color-gray: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e9ecef;
  --font-main: "Poppins", sans-serif;
}

/* =========================================
   APPOINTMENT PAGE STYLES
   ========================================= */

/* ... (Keep your :root variables) ... */

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--color-dark);
}

/* --- FIX: Don't shrink the global container! --- */
/* Remove the previous .container rule from here */

/* Instead, creating a specific narrow container for the form only */
.appt-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Update the Hero Section to use the normal container */
.appt-hero .container {
  max-width: 1280px; /* Restores full width to hero text if needed */
}
.hero-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.highlight {
  text-align: center;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Orange underline effect */
.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 133, 63, 0.2);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 2. Form Section --- */
.appt-form-section {
  padding: 60px 0 100px;
}

.appt-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(93, 53, 185, 0.08); /* Purple-tinted shadow */
  padding: 50px;
  border: 1px solid var(--white);
  position: relative;
}

/* Top Accent Line */
.appt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-blue));
  border-radius: 20px 20px 0 0;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* Form Layout */
.appt-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Divider Line */
.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed #ddd;
}

.form-divider span {
  padding: 0 15px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Input Styling */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group.full-width {
  grid-column: span 2;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
}

.req {
  color: red;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary); /* Purple Icons */
  font-size: 1.1rem;
}

/* Specific adjustment for textarea icon */
.input-group textarea + i,
.input-group textarea ~ i {
  /* If you add icon to textarea later */
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 20px 14px 45px; /* Padding Left for icon */
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  transition: all 0.3s ease;
  color: var(--color-dark);
  outline: none;
}

.input-wrapper textarea {
  padding: 15px; /* No icon for textarea usually */
  resize: vertical;
}

/* Focus State */
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  background-color: var(--white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(93, 53, 185, 0.1);
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 20px;
}

.btn-book-now {
  background: linear-gradient(90deg, var(--color-primary), #4a2b96);
  color: var(--white);
  padding: 16px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(93, 53, 185, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-book-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(93, 53, 185, 0.35);
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    #d66613
  ); /* Changes to Orange on Hover */
}

/* Success Message */
.success-msg {
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  min-height: 24px;
}

/* Help Text */
.appt-help {
  text-align: center;
  margin-top: 30px;
  color: var(--color-gray);
  font-size: 0.95rem;
}

.appt-help strong {
  color: var(--color-dark);
}

.appt-help i {
  color: var(--accent-blue);
  margin-right: 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .appt-card {
    padding: 30px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .input-group.full-width {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}
