/* ==========================================================================
   Components
   ========================================================================== */

/* Schedule Pill Component */
.schedule-pill {
  background: white;
  color: #2c3e50;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 400px;
  transition: all 0.3s ease;
  line-height: 1.8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #f4a460;
  position: relative;
  overflow: hidden;
  animation: modalSlideIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.schedule-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f4a460, #ffd700);
}

/* Add animation keyframes */
@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
    scale: 0.95;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    scale: 1;
  }
}

/* Time Toggle Component */
.time-toggle {
  background-color: #f4a460;
  color: white;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: popIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  animation-delay: 0.3s;
  opacity: 0;
  gap: 8px;
}

/* Updated time-of-day colors */
.time-toggle.morning {
  background-color: #ffb74d; /* Warm orange */
  color: #4a4a4a;
}

.time-toggle.afternoon {
  background-color: lightblue;
  color: white;
}

.time-toggle.night {
  background-color: #3f51b5; /* Deep indigo */
  color: #ffffff;
}

.time-toggle.tbd {
  background-color: #90a4ae; /* Blue-grey */
  color: #ffffff;
}

.time-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Add this to trim any extra spaces */
.time-toggle span {
  margin: 0;
  padding: 0;
}

.time-toggle i {
  margin: 0;
  line-height: 1;
}

/* Debug styles */
.time-toggle.debug-touch {
  border: 2px solid red;
}

.time-toggle.debug-click {
  border: 2px solid blue;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.booking-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 800px;
}

.easepick {
  margin: 0 auto;
}

#date-result {
  text-align: center;
  margin: 15px 0;
}

#datepicker {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Brand styling */
h1.brand {
  font-family: var(--font-family-headers) !important;
  color: #f4a460 !important;
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15) !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  margin: 2rem 0 !important;
  text-transform: none !important;
}

/* Calendar container */
.date-picker-container {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.easepick-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Form elements */
input[type="text"],
input[type="email"] {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 1rem;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: #f4a460;
  box-shadow: 0 0 0 3px rgba(244, 164, 96, 0.2);
  outline: none;
}

/* Submit button */
.submit-button {
  background: linear-gradient(45deg, #f4a460, #ffd700);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Success and error messages */
.success-message,
.error-message {
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */

.pulse {
  animation: pulse 0.5s;
}

.hidden {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile */
@media (max-width: 768px) {
  .schedule-pill {
    padding: 8px 12px;
  }

  .time-toggle {
    padding: 8px 15px;
    min-height: 44px;
  }

  .tooltip:active::before,
  .tooltip:active::after {
    opacity: 1;
  }

  @media (hover: none) {
    .tooltip:hover::before,
    .tooltip:hover::after {
      opacity: 0;
    }
  }
}

/* Tablet and larger screens */
@media (min-width: 769px) {
  .container {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Optional: Add a subtle bounce effect to the time toggles */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.p-intro {
  font-family: var(--font-family);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
