body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  padding: 20px;
}

h1 {
  text-align: center;
}

/*
.container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
}
*/

#appointmentForm,
.support-card {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.col {
  float: left;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .col {
    width: 50%;
  }
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="datetime-local"] {
  -webkit-appearance: textfield; /* Safari and Chrome */
  appearance: textfield;
}

input[type="datetime-local"]::-webkit-datetime-edit {
  padding: 0;
}

input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
}

input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
  flex: 1;
}

button {
  display: block;
  margin: 30px auto 0; /* Center all buttons horizontally */
  padding: 15px 30px; /* Consistent padding for all buttons */
//  margin-top: 10px;
//  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold; /* Make all button text bold */
  text-align: center; /* Ensure text is centered inside the button */
}

button:hover {
  background-color: #45a049;
}

/*#acceptButton {
text-align: center;
font-weight:bold;
padding: 20px;
margin: 0 auto;
}
*/
h2 {
  text-align: center;
  margin-top: 20px;
}

/*
.service-agreement {
  max-width: 2000px; 
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
}

#serviceAgreement {
display:block;
}

#serviceAgreement::after {
  content: ""; display: table; clear: both;
}

*/

.service-agreement {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fff;
  border: 1px solid #000; /* Border to give it a document-like look */
  border-radius: 5px;
  font-family: 'Times New Roman', Times, serif; /* Serif font for a formal appearance */
  line-height: 1.6; /* Increased line height for readability */
  text-align: justify; /* Justify text for a formal document appearance */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for depth */
}

.service-agreement h2 {
  font-size: 24px; /* Larger font for the main title */
  font-weight: bold;
  text-align: center; /* Center-align the main title */
  margin-bottom: 20px;
}

.service-agreement h3 {
  font-size: 18px; /* Slightly larger font for section headers */
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase; /* Uppercase for section titles */
}

.service-agreement p {
  margin: 15px 0;
  text-indent: 40px; /* Indentation for paragraphs */
}
/*
#acceptButton {
  display: block;
  margin: 30px auto 0;
  padding: 15px 30px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#acceptButton:hover {
  background-color: #45a049;
}
*/

#calendarContainer {
  display: none;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 20px;
}

#calendar h3 {
  text-align: center;
  margin-bottom: 10px;
}

.available-day {
  padding: 10px;
  background-color: #4caf50; /* Existing green color */
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.unavailable-day {
  padding: 10px;
  background-color: #ddd; /* Muted color */
  color: #999;
  border-radius: 5px;
  cursor: not-allowed;
}

.blank-day {
  padding: 10px;
  background-color: transparent;
}

.day-header {
  padding: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: #666;
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.selected {
  background-color: #228B22; /* New green color for selected elements */
}

#timeSlots {
  margin-top: 20px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Dynamic columns */
  gap: 10px;
}

.time-slot {
  padding: 10px;
  background-color: #4caf50; /* Existing green color */
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.time-slot.selected {
  background-color: #228B22; /* New green color for selected time slots */
}

/* Specific styles for pagination buttons */
.pagination-button {
  margin: 2px;
  padding: 5px 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-button:hover {
  background-color: #45a049;
}


/* Pagination container positioned as a footer for the calendar */
.pagination-buttons {
  margin-top: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
}


/* Styles for grayed-out calendar */
.grayed-out {
  background-color: #e0e0e0; /* Light gray background */
  color: #999; /* Gray text */
  pointer-events: none; /* Disable interactions */
}

/*

.day-header-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.day-header {
  flex: 1;
  text-align: center;
}

.pagination-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.pagination-button {
  padding: 5px 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-button:hover {
  background-color: #45a049;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}


#calendar div {
    width: 2.5rem; height: 2.5rem; line-height: 2.5rem; text-align: center; margin: 0.2rem; display: inline-block; background-color: #f0f0f0; 
    border-radius: 5px;
}
.available-day { background-color: #4caf50; color: white; cursor: pointer;
}
.unavailable-day { background-color: #e0e0e0; color: #999;
}

.pagination-buttons { text-align: center; margin-top: 10px;
}
.pagination-buttons button { background-color: #4caf50; color: white; border: none; border-radius: 5px; padding: 10px 20px; margin: 5px; cursor: 
    pointer;
}
.pagination-buttons button:hover { background-color: #45a049;
}
.day-header-row { display: flex; justify-content: space-between; margin-bottom: 10px;
}
.day-header { flex: 1; text-align: center; font-weight: bold;
}


*/

/* --- v2 additions: CSP-safe visibility + confirmation card (v1 used
   inline style attributes, blocked by style-src 'self') --- */
.hidden { display: none !important; }
.sms-consent { font-size: 11px; color: #888; margin-top: 4px; line-height: 1.4; }
.confirmation-card {
  max-width: 500px; margin: 40px auto; padding: 30px;
  background: #fff; border-radius: 5px; text-align: center;
}
.confirm-ok { color: #4caf50; }

/* Booking confirmation screen: mirrors the email's calendar tile.
   New classes only; does not touch the agreement/form/date-picker styles. */
.confirmation-card { font-family: 'Consolas', 'Courier New', Courier, monospace; }
.confirmation-card .confirm-ok { font-size: 24px; margin: 0 0 10px; }
.conf-cal { display: inline-block; width: 160px; text-align: center; border: 1px solid #ddd; border-radius: 12px; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); overflow: hidden; }
.conf-cal-month { background-color: #4caf50; color: #fff; padding: 10px 0; font-weight: bold; text-transform: uppercase; font-size: 18px; }
.conf-cal-day { font-size: 42px; padding: 15px 0; color: #424242; }
.conf-cal-weekday { background-color: #f4f4f4; color: #424242; padding: 10px 0; font-size: 16px; font-weight: bold; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.conf-cal-time { color: #777; font-size: 16px; font-weight: bold; padding: 10px 0; }
.confirmation-card p { color: #424242; }

/* Root chooser page (/) — v1 parity (Remote / On-Site option cards). */
.options-container { max-width: 600px; margin: 30px auto; padding: 0 20px; }
.option-card { display: block; background: #fff; border: 2px solid #e0e0e0;
               border-radius: 10px; padding: 24px 28px; margin-bottom: 16px;
               text-decoration: none; color: #333;
               transition: border-color 0.2s, box-shadow 0.2s; }
.option-card:hover { border-color: #4caf50; box-shadow: 0 4px 12px rgba(76,175,80,0.15); }
.option-card h2 { margin: 0 0 6px 0; font-size: 20px; color: #333; }
.option-card .tag { display: inline-block; font-size: 12px; padding: 2px 10px;
                    border-radius: 12px; background: #e8f5e9; color: #4caf50;
                    font-weight: 600; }
.options-empty { text-align: center; color: #888; }
.support-link { text-align: center; margin-top: 30px; font-size: 14px; color: #888; }
.support-link a { color: #4caf50; text-decoration: none; }
.support-link a:hover { text-decoration: underline; }

/* /support confirmation panel (v1 parity). */
.ticket-confirmation { text-align: center; padding: 30px 0; }
.ticket-confirmation h2 { color: #4caf50; }
