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: #88C541;
  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: #88C541;
}

/*#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: #88C541;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#acceptButton:hover {
  background-color: #88C541;
}
*/

#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: #88C541; /* 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: #88C541; /* 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: #88C541; /* Existing green color */
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

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

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

.pagination-button:hover {
  background-color: #88C541;
}


/* 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: #88C541;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-button:hover {
  background-color: #88C541;
}

.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: #88C541; color: white; cursor: pointer;
}
.unavailable-day { background-color: #e0e0e0; color: #999;
}

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


*/

/* ================= Antonni-ordered changes on top of v1 ================= */
/* Jul 16: readable agreement (his 3:13 PM call), black text, outlined buttons */
.service-agreement { font-family: Arial, sans-serif; text-align: left; }
.service-agreement p { text-indent: 0; }
.service-agreement, .service-agreement p, .service-agreement h2,
.service-agreement h3, .service-agreement li { color: #000; }
#acceptButton, button[type="submit"] { border: 1px solid #000 !important; }

/* Header logo + favicon-era additions */
.site-header { text-align: center; margin: 4px 0 2px; }
.site-header img { width: 380px; max-width: 86vw; height: auto; }

/* Loading overlay (kb.geekasyst.com pattern) */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #f0f4f8; display: flex; flex-direction: column;
  justify-content: center; align-items: center; z-index: 9999; }
.loading-logo { width: 220px; height: 220px; object-fit: contain; border-radius: 20%;
  animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.loading-bar-container { width: 300px; height: 40px; background-color: #e0e0e0;
  border-radius: 10px; margin-top: 20px; overflow: hidden; }
.loading-bar { width: 0%; height: 100%; background-color: rgb(136, 197, 65);
  transition: width 0.3s ease; }

/* Address autocomplete (OpenStreetMap) */
.addr-wrap { position: relative; }
.addr-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid #d0d0d0; border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12); max-height: 220px; overflow-y: auto;
  margin: -2px 0 0; padding: 0; list-style: none; }
.addr-suggest li { padding: 10px 12px; font-size: 14px; color: #333; cursor: pointer; }
.addr-suggest li:hover, .addr-suggest li.active { background: #f2f8e8; }
.osm-attrib { font-size: 10.5px; color: #aaa; margin-top: 4px; }
.osm-attrib a { color: #aaa; }

/* Brand green (his #88C541) for legacy #88C541 refs in v1 css */

/* v2 templates toggle visibility with .hidden (was lost in the v1 reset) */
.hidden { display: none !important; }

/* Green elements: his gray (#666, the 'Wed' header gray) text + subtle
   outline and drop shadow on everything green (Antonni, Jul 16 5:40 PM) */
.available-day, .time-slot, .selected, .time-slot.selected,
.pagination-buttons button, .pagination-button,
button[type="submit"], #acceptButton, .accept-button {
  color: #000 !important;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* v2 classes dropped by the v1 reset: consent fine print + confirmation card */
.sms-consent { font-size: 11px; color: #888; margin-top: 4px; line-height: 1.4; }
.confirmation-card { max-width: 500px; margin: 0 auto; background: #fff;
  padding: 24px; border-radius: 5px; text-align: center;
  font-family: 'Consolas', 'Courier New', Courier, monospace; }
.confirm-ok { color: #88C541; }
.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: #88C541; color: #000; 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; }


/* Confirmation copy: date+time bolded on its own line, no mid-number wraps */
.confirm-when { display: block; font-size: 18px; margin: 8px 0 14px; white-space: nowrap; }
.confirmation-card p { margin: 8px 0; }
.conf-resched strong { white-space: nowrap; }

.conf-contact-line { display: block; margin-top: 2px; }

/* Location chooser (homepage-style cards) on 'both'-mode links */
.options-container { width: 100%; max-width: 500px; margin: 0 auto; }
button.option-card { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.option-card {
  display: block;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #88C541;
  border-radius: 5px;
  padding: 18px 22px;
  margin-bottom: 14px;
  color: #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.option-card:hover {
  border-color: #88C541;
  border-left-color: #88C541;
  background-color: #f7fcf0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.option-card h2 { margin: 0; font-size: 1.15em; }
#locationSummaryText { font-weight: bold; }
.loc-change {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  color: #6ea32f;
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: underline;
  cursor: pointer;
}
