.appointment-container {
   display: flex;
    flex-wrap: wrap;
    gap: 15%;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e3f2fd, #f9f9f9);
    min-height: 100%;
    padding: 30px 10px;
   
}

.mfn-code:has(.appointment-title){
	background:transparent !important;
	border: none !important;
	white-space: normal !important;
	padding: 0px 15px !important;
	margin: 0px !important;
}
#response_top {
    width: 100%;
    text-align: center;
    order: -1;  /* ensures it stays above .appointment-form in the flex container */
}
#error_phone{
  margin-top: -20px !important;
}
.appointment-form {
  width: 100%;
  max-width: 301px !important;
  background: #fff;
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  /* margin-bottom: 40px; */
}
.appointment-form:hover , .appointment-verify-container:hover{
  transform: translateY(-3px);
}
.today-appointment-box {
    text-align: center;
    padding: 20px;
    font-size: 26px;
    font-weight: bold;
    color: #1d5c63;
}

.appointment-form h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
  align-items: center; 
}

.appointment-form h2 i {
  color: #3498db;
  margin-right: 8px;
}

/* Ensure uniform spacing and alignment */
.form-group {
  margin-bottom: 9px;
  margin-left: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Label alignment */
.form-group label {
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* Icon alignment next to label text */
.form-group label i {
  color: #396F7B;
  margin-right: 6px;
  font-size: 16px;
}

/* Input fields */
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.2s ease;
  background-color: #fafafa;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.2);
}

/* Button styling */
.btn-submit {
  width: 100%;
  background: #DD3F60;
  color: #fff;
  font-size: 16px;
 
}

.btn-submit:hover {
  background: #DD3F60;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
  color:#fff;
}

/* Response message */
#response {
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  color: #27ae60;
}

#response_top {
    width: 100%;
    text-align: center;
    order: -1;
}

#response_top .mh-success-msg {
    background: #fff;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 14px 20px;
    color: #15803d;
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#response_top .mh-error-msg {
    background: #fff;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 14px 20px;
    color: #dc2626;
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.error {
  color: #e74c3c;
  font-size: 12px;
  display: block;
  position: absolute;
  margin-top: 72px;
}
.otp-success-msg {
  color: green;
  font-size: 13px;
  display: block;

}

.success-message {
  color: #2ecc71;
  margin-top: 10px;
}
.error-message {
  color: #e74c3c;
  margin-top: 10px;
}

#appointmentResult{
  margin-left: 27px;
}

.mh-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.mh-badge-admin {
    background-color: #dbeafe;
    color: #1d4ed8;
}
.mh-badge-customer {
    background-color: #dcfce7;
    color: #15803d;
}

.current-appointment {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  color: #27ae60;
}

.mh-radio-group {
    display: flex;
    gap: 12px;
    align-items: center;
}
.mh-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}
.mh-radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: #2271b1;
}
.mh-radio-label input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
/* Appointment Verify Form*/

.appointment-verify-container {
  max-width: 362px;
  width: 100%;
  transition: 0.3s ease;
  background: #fff;
  padding: 35px 22px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.appointment-verify-container h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
  align-items: center; 
}

.appointment-verify-container label {
  font-weight: 600;
}
.appointment-verify-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}


.appointment-verify-container button:hover {
  background-color: #005c87;
}
.result-box {
  background: #f0f8ff;
  padding: 15px;
  margin-top: 15px;
  border-radius: 6px;
  text-align: center;
}

#ongoingAppointment { font-weight: bold; color: green; }
#userAppointment { font-weight: bold; color: blue; }
#appointmentMessage { color: red; }


.mh-token-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.mh-token-message {
    font-size: 14px;
    font-weight: 700;
    color: #2ecc71;
    margin: 0 0 10px;
    text-align: center;
}

.mh-token-label {
    font-size: 11px;
    font-weight: 600;
    color: #9aa5b1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    text-align: center;
}

.mh-token-circle {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #2ecc71;
    border: 3px solid #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    animation: mhTokenPop 0.35s ease;
}

.mh-token-number {
    font-size: 40px;
    font-weight: 800;
    color: #d6336c;
    margin: 0;
    line-height: 1;
}

.mh-current-token-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7684;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    text-align: center;
}

.mh-current-token-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(74,144,226,0.15);
    margin: 0 auto;
}

.mh-current-token-number {
    font-size: 26px;
    font-weight: 800;
    color: #4a90e2;
    line-height: 1;
}
.opd_status_msg{
  color:#427381;
}

.mh-absent-badge {
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}


@keyframes mhTokenPop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
#response_top .mh-token-wrap {
    margin-bottom: 10px;
}
/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (min-width: 768px) and (max-width: 1024px){
  .appointment-container {
    gap: 20px;
    padding: 20px 14px;
    align-items: flex-start;
    min-height: auto !important;
  }

  .appointment-form,
  .appointment-verify-container {
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 480px) {
  .appointment-container {
    gap: 16px;
    padding: 16px 12px;
    min-height: auto;
  }

  .appointment-form,
  .appointment-verify-container {
    max-width: 100%;
    padding: 20px 16px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }

  .appointment-form h2,
  .appointment-verify-container h2 {
    font-size: 19px;
    margin-bottom: 14px;
  }

  .form-group label,
  .appointment-verify-container label {
    font-size: 13px;
  }

  .form-group input,
  .appointment-verify-container input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .btn-submit {
    font-size: 15px;
    padding: 12px;
  }

  .sendOtpBtn,
  .resendOtpBtn,
  .verifyOtpBtn {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 11px 14px !important;
    font-size: 14px;
  }

  #response_top .mh-success-msg,
  #response_top .mh-error-msg {
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .mh-radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .today-appointment-box {
    font-size: 18px;
    padding: 14px;
  }

  #Subheader {
    margin-top: 17px !important;
    padding-left: 40px !important;
  }

  #Content {
    padding-top: 10px !important;
  }

  .mh-token-circle {
      width: 130px;
      height: 130px;
  }
  .mh-token-number {
      font-size: 55px;
  }
  .mh-token-message {
      font-size: 13px;
  }
  .mh-token-label {
      font-size: 10px;
  }

  .mh-current-token-circle {
    width: 60px;
    height: 60px;
  }
  .mh-current-token-number {
    font-size: 17px;
  }
}