/* Styles */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  line-height: 1.6;
}

h1 {
  margin-bottom: 20px;
}

h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Form elements */
fieldset {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

legend {
  padding: 0 10px;
  font-weight: bold;
  font-size: 1.1em;
}

form > div,
fieldset > div {
  margin-bottom: 15px;
}

label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="number"],
input[type="text"],
select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

input[type="radio"] {
  margin-right: 5px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

button[type="submit"] {
  background-color: #28a745;
  padding: 12px 30px;
  font-size: 16px;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #218838;
}

button.cancel-btn {
  background-color: #dc3545;
  padding: 6px 12px;
  font-size: 13px;
}

button.cancel-btn:hover {
  background-color: #c82333;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* Contact section */
#contactSection {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-top: 10px;
}

#contactSection > div {
  margin-bottom: 10px;
}

/* Disclaimer */
em {
  font-size: 13px;
  color: #666;
}

/* Inactive appointments (completed or canceled) */
tr.inactive td {
  text-decoration: line-through;
  color: #999;
}

button.cancel-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

button.cancel-btn:disabled:hover {
  background-color: #6c757d;
}
