/** @format */

.select-date-calendar-container {
  font-family: "Roboto", sans-serif; /* Google's font */
  max-width: 600px; /* Adjust as needed */
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-navigation {
  background-color: #f8f9fa; /* Light background for navigation */
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.calendar-navigation button {
  background-color: transparent;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 16px;
}

.calendar-navigation button:hover {
  background-color: #e9ecef;
  border-radius: 4px;
}

.atr-cc-appt-book-free-slots-list {
  list-style: none;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(120px, 1fr)
  ); /* Larger slots */
  gap: 8px;
}

.atr-cc-appt-book-free-slots-list li {
  background-color: #fff; /* White background */
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left; /* Aligned to the left */
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.2s ease; /* Smooth hover transition */
}

.atr-cc-appt-book-free-slots-list li:hover {
  background-color: #f0f0f0;
}

/* Selected Style */
.atr-cc-appt-book-free-slots-list li.selected {
  background-color: #e8f0fe; /* Light blue for selected */
  border-color: #b3d7ff;
}

/* Optional: Add a time indicator */
.atr-cc-appt-book-free-slots-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4285f4; /* Google blue */
  margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .atr-cc-appt-book-free-slots-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 400px) {
  .atr-cc-appt-book-free-slots-list {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

span.at-date-instructions {
  color: blue;
  font-size: 0.8em;
  font-weight: 400;
}

.mazda-appointment-form {

}

.mazda-appointment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #333;
}

.mazda-appointment-form input,
.mazda-appointment-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

.mazda-appointment-form input:focus,
.mazda-appointment-form textarea:focus {
  border-color: #0073aa;
  outline: none;
}

/* .mazda-appointment-form button[type="submit"] {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
} */

.mazda-appointment-form button[type="submit"]:hover {
  background-color: #005d8c;
}

ul.atr-cc-appt-book-your-scheduled-mazda-appointments {
  list-style: none;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.atr-cc-appt-book-your-scheduled-mazda-appointments li {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.atr-cc-appt-book-mazda-appointments-list {
  background: #f9f9f9;
  border-right: 4px solid #3498db;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 4px;
}

.atr-cc-appt-book-mazda-appointments-list h4 {
  margin-top: 0;
}

.atr-cc-appt-book-mazda-appointments-list ul {
  margin: 0;
  padding-left: 1.2em;
}

.atr-cc-appt-book-mazda-appointments-list li {
  margin-bottom: 0.25em;
}

.atr-cc-appt-book-free-slots-list .selected-slot,
.atr-cc-appt-book-free-slots-list .selected-slot:hover {
  background: brown;
  color: #fff;
}

.atr-cc-appt-book-free-slots-list .selected-slot:before {
  background-color: coral;
}

@keyframes input-flash {
  0% {
    background-color: #d1ecf1;
  }

  100% {
    background-color: white;
  }
}

input#at_date.flash {
  animation: input-flash 1s ease;
}
