/* Card Container */
.appointment-card {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* Preliminary System Check Box */
.system-check-box {
  background: #f8f9fa;
  border: 1px solid #139122;
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.system-check-title {
  margin-top: 0;
  margin-bottom: 14px;
  color: #0056b3;
  font-size: 1.1em;
  font-weight: 700;
}

.check-item {
  margin-bottom: 12px;
}

.check-item:last-child {
  margin-bottom: 0;
}

.check-item label {
  font-size: 14.5px;
  color: #1a202c;
  word-wrap: break-word;
}

.radio-group {
  margin-top: 4px;
  display: flex;
  gap: 20px;
}

.radio-group label {
  font-weight: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Form Layout & Groups */
.appointment-form {
  display: grid;
  gap: 5px;
  width: 100%;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #003366;
  margin-bottom: 8px;
  font-size: 15px;
}

/* Inputs, Selects, and Textareas */
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #139122; /* Green border */
  border-radius: 6px;
  background-color: #ffffff;
  color: #1a202c;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Grid Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: 100%;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Responsiveness Rules */
@media (max-width: 639px) {
  .appointment-card {
    padding: 15px; /* Reduced padding for mobile screens */
  }

  .system-check-box {
    padding: 12px;
  }

  .btn-submit {
    width: 100%; /* Full width submit button for easy tapping */
  }
}

/* reCAPTCHA & Submit Styling */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 15px 0 20px 0;
  overflow-x: auto; /* Prevents reCAPTCHA box breaking screen width on small screens */
}

.submit-btn-wrapper {
  text-align: center;
  width: 100%;
}

.btn-submit {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}

/* Alert Messages */
.alert-message {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 15px;
  box-sizing: border-box;
  word-wrap: break-word;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}