/* 
  ========== Base (Mobile-First) Styles ==========
  Dark theme with warm-gray tones and optimized UI/UX
*/
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #2c2f33; /* Warm dark gray */
  color: #dcdcdc; /* Light text for readability */
  font-size: 18px;
  line-height: 1.5;
  padding: 20px;
}

/* 
  ========== Container ==========
  Central card-style layout with rounded corners and soft shadows
*/
.container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  background: #36393f; /* Slightly lighter dark gray for content cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* 
  ========== Headings ==========
*/
h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 2.2rem;
  line-height: 1.2;
}

/* 
  ========== Form Sections ==========
  Card-style sections with ample spacing for clarity
*/
.form-section {
  margin-bottom: 25px;
  padding: 25px;
  background: #2f3136;
  border-radius: 8px;
  border: 1px solid #444;
}
.form-section h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  border-bottom: 2px solid #7289da; /* Accent underline */
  padding-bottom: 8px;
}

/* 
  ========== Labels & Inputs ==========
*/
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #b0b0b0;
}

select,
input[type="text"].datepicker {
  width: 100%;
  padding: 14px;
  background: #2c2f33;
  color: #e0e0e0;
  border: 2px solid #444;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
select:focus,
input:focus {
  border-color: #7289da;
  outline: none;
  box-shadow: 0 0 0 4px rgba(114,137,218,0.25);
}

/* 
  ========== Slots & Time Selection ==========
*/
.slots {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.slot {
  flex: 0 1 auto;
  background: #2c2f33;
  padding: 16px 20px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 2px solid #444;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.slot:hover {
  border-color: #7289da;
  background: #41454d;
}
.slot.selected {
  background: #7289da;
  color: #2c2f33;
  border-color: #7289da;
}

/* 
  ========== Summary Box & Buttons ==========
*/
.summary {
  background: #2f3136;
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
  border: 2px solid #444;
}

.btn {
  display: inline-block;
  width: 100%;
  background: #7289da;
  color: #2c2f33;
  padding: 16px;
  font-size: 1.3rem;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #677bc4;
}

/* 
  ========== Messages ==========
*/
.message {
  padding: 20px;
  margin: 25px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}
.message.error {
  background: #b71c1c;
  color: #fff;
  border: 2px solid #f44336;
}

/* 
  ========== Grid Layout ==========
  Flexible layout for different screen sizes
*/
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 20px 0;
}

/* 
  ========== Staff Photo ==========
*/
#staffPhoto {
  max-width: 200px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  display: none;
}

/* 
  ========== jQuery UI Datepicker ==========
*/
.ui-datepicker {
  border: 2px solid #444 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  font-size: 16px;
}
.available-date a {
  background: #7289da !important;
  color: #2c2f33 !important;
  border-radius: 4px !important;
}

.duration-badge {
  color: #b0b0b0;
  font-style: italic;
  margin-top: 8px;
}
.price-badge {
  color: #7289da;
  font-weight: bold;
  margin-top: 8px;
  font-size: 1.1rem;
}

/* 
  ========== Responsive Breakpoints ==========
  Optimized for various screen sizes
*/
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h2 {
    font-size: 2rem;
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  h2 {
    font-size: 1.8rem;
  }
  .btn {
    font-size: 1.1rem;
    padding: 14px;
  }
}
