.sticky-appt-section {
    display: none;
}

.appointment_area h2{
    margin-top: 0;
}

.appointment_area #x1a8b0c992923410 > *{
    margin-top: 0 !important;
}

.appointment_area #x1a8b0c992923410 > *:not(:last-child){
    margin-bottom: 16px;
}

.appointment_area #x1a8b0c992923410 button{
    margin-right: 8px;
    margin-bottom: 16px;
}

/* Base container */
.appointment_area form {
  font-family: "Petrona", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Spacing between field groups */
  max-width: 700px;
  padding: 0;
  box-sizing: border-box;
  color: #222;
  background: #fff;
}

/* Section headers */
.xeyexSubHeader {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px !important;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}

/* Field wrapper */
.xeyexFieldMaster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px; /* space between fields */
}

/* Labels */
.xeyexFieldMaster label {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  font-family: 'Poppins';
  line-height: 1.45em;
}

/* Inputs, selects, text fields */
.xeyexInput:not(#xeyexSubmit):not(input[type="checkbox"]):not(input[value="Confirm Appointment"]) {
  width: 100% !important;
  font-family: 'Poppins';
  padding: 10px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease, 
  box-shadow 0.2s ease !important;
  background-color: #fff !important;
  height: 52px;
}

.xeyexInput:focus {
  border-color: #664651;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 70, 81, 0.2);
}

/* Date of Birth fields */
#xeyexPMS_dob {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#xeyexPMS_dob select {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 90px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Submit button */
#xeyexSubmit,
.xeyexInput[type="submit"] {
  font-family: "Poppins", sans-serif;
  background-color: #452B34;
  color: #fff;
  font-weight: 500;
  padding: 12px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, 
  transform 0.1s ease;
  margin-top: 20px;
  min-width: 145px;
}

input[value="Confirm Appointment"] {
  font-family: "Poppins", sans-serif;
  background-color: #452B34;
  color: #fff;
  font-weight: 500;
  padding: 12px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, 
  transform 0.1s ease;
  margin-top: 20px;
  min-width: 145px;
}

#xeyexSubmit:hover,
.xeyexInput[type="submit"]:hover {
  background-color: #664651;
  transform: translateY(-1px);
}

/* Larger screens (desktop) */
@media (min-width: 600px) {
  .xeyexFieldMaster {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .xeyexFieldMaster label {
    width: 160px;
    flex-shrink: 0;
    text-align: right;
  }

  .xeyexFieldMaster .xeyexInput {
    flex: 1;
  }

  #xeyexPMS_dob {
    flex: 1;
    flex-wrap: nowrap;
    gap: 12px;
  }

  #xeyexSubmit, .xeyexInput[type="submit"] {
    margin-left: 176px;
  }

  /* Slightly larger section header for desktop */
  .xeyexSubHeader {
    font-size: 20px;
    margin-top: 40px;
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .xeyexFieldMaster {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .xeyexFieldMaster label {
    text-align: left;
    width: auto;
  }

  .xeyexSubHeader {
    font-size: 16px;
    margin-top: 24px;
  }
}