/* === Overlay (背景层) === */
.contact-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: none;
  overflow: hidden;
}

/* === 主面板：固定在最右边 === */
.contact-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 780px; /* ⬅️ widened */
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.contact-popup.open {
  transform: translateX(0);
}

/* === Header 区域 === */
.contact-popup-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 36px 56px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-popup-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #3c3a3a;
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', 'Open Sans', sans-serif;
}

.contact-popup-header h3 {
  font-size: 30px;
  color: #1a1446;
  font-weight: 500;
  margin: 0;
  font-family: 'Helvetica Neue', 'Open Sans', sans-serif;
}

/* Close 按钮 */
.contact-popup-header .close-btn {
  position: absolute;
  top: 36px;
  right: 36px;
  background: none;
  border: 2px solid #00a6ad;
  color: #00a6ad;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.contact-popup-header .close-btn:hover {
  background: #00a6ad;
  color: #fff;
}

/* === 主体内容 === */
.contact-popup-body {
  background: #f8f8f8;
  padding: 48px 64px 40px;
  flex: 0 0 auto;
  border-bottom: 1px solid #eaeaea;
}

/* === 按钮样式 === */
.buttonlist {
  margin: 0;
}

.buttonlist button.customer-button {
  width: 100%;
  background: #fff;
  color: #009ca6;
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  padding: 22px 24px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.25s ease;
}

.buttonlist button.customer-button::after {
  content: '›';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #00a6ad;
  font-size: 22px;
}

.buttonlist button.customer-button:hover {
  background: #f2fafa;
  border-color: #00a6ad;
}

/* === 底部 Cancel 按钮 === */
.contact-popup-footer {
  background: #fff;
  padding: 32px 64px 40px;
  text-align: left;
}

.contact-popup-footer .cancel-btn {
  background: none;
  border: 2px solid #00a6ad;
  color: #00a6ad;
  border-radius: 25px;
  padding: 10px 36px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-popup-footer .cancel-btn:hover {
  background: #00a6ad;
  color: #fff;
}

/* === Mobile === */
@media (max-width: 768px) {
  .contact-popup {
    width: 100%;
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
  }

  .contact-popup.open {
    transform: translateY(0);
  }

  .contact-popup-body,
  .contact-popup-header,
  .contact-popup-footer {
    padding: 24px;
  }
}

/* Optional: wider screens get a bit more width */
@media (min-width: 1400px) {
  .contact-popup {
    width: 900px;
  }
}


/* === Screen2: Email Form Styling (clean version) === */
#screen2-patientform {
  background: transparent;              /* remove outer gray */
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

#screen2-patientform form {
  background: #f8f8f8;                  /* inner gray only */
  padding: 60px 80px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Form labels */
#screen2-patientform label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1446;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Input fields */
#screen2-patientform input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 22px;
  background: #fff;
  transition: all 0.2s ease;
}

#screen2-patientform input:focus {
  border-color: #00a6ad;
  box-shadow: 0 0 0 1px #00a6ad;
  outline: none;
}

/* === Navigation buttons === */
#screen2-patientform .wc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

#screen2-patientform .wc-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #00a6ad;
  border-radius: 30px;
  font-weight: 600;
  padding: 8px 26px;
  color: #00a6ad;
  text-decoration: none;
  transition: all 0.25s ease;
}

#screen2-patientform .wc-row a:hover {
  background: #00a6ad;
  color: #fff;
}

#screen2-patientform .wc-row .next-scrn::after {
  content: ' →';
  font-weight: 700;
  margin-left: 6px;
}

#screen2-patientform .wc-row .close-scrn::before {
  content: '← ';
  font-weight: 700;
  margin-right: 6px;
}

/* === Optional: progress dots === */
.form-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.form-progress span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 6px;
  transition: background 0.2s ease;
}

.form-progress span.active {
  background: #333;
}

/* === Screen1: Message Form Styling (clean version) === */
#screen1-input {
  background: transparent !important;   /* ✅ remove outer gray */
  padding: 0 !important;
  max-width: 700px;
  margin: 0 auto;
}

#screen1-input form {
  background: #f8f8f8;                  /* ✅ only inner gray box */
  padding: 60px 80px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}



/* Label */
#screen1-input label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1446;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Textarea */
#screen1-input textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  min-height: 220px;
  background: #fff;
  resize: vertical;
  transition: all 0.2s ease;
}

#screen1-input textarea:focus {
  border-color: #00a6ad;
  box-shadow: 0 0 0 1px #00a6ad;
  outline: none;
}

/* Buttons */
#screen1-input .wc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

#screen1-input .wc-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #00a6ad;
  border-radius: 30px;
  font-weight: 600;
  padding: 8px 26px;
  color: #00a6ad;
  text-decoration: none;
  transition: all 0.25s ease;
}

#screen1-input .wc-row a:hover {
  background: #00a6ad;
  color: #fff;
}

#screen1-input .wc-row .next-scrn::after {
  content: ' →';
  font-weight: 700;
  margin-left: 6px;
}

#screen1-input .wc-row .close-scrn::before {
  content: '← ';
  font-weight: 700;
  margin-right: 6px;
}

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 0.9em;
  margin-top: 4px;
}

input.error, textarea.error {
  border-color: #d32f2f;
}


/* === Final screen styling === */
/* === Popup cleanup === */

/* remove gray background and padding around the white box */
#screen3-acknowledgeform {
  background: transparent !important;   /* no gray outside */
  padding: 0 !important;
  box-shadow: none !important;
}

/* make the inner box pure white and centered */
.acknowledge-box {
  background: #ffffff;                  /* solid white background */
  padding: 40px 60px;
  border-radius: 4px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* optional soft shadow */
}

/* optional: ensure popup wrapper background stays clean */
.contact-popup {
  background: transparent !important;
  box-shadow: none !important;
}




.terms-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  color: #222;
  line-height: 1.5;
}

.checkbox-label input {
  margin-right: 10px;
  margin-top: 3px;
}

.checkbox-label a {
  color: #0088cc;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.privacy-note {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
  line-height: 1.6;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.submit-btn {
  background-color: transparent;       /* remove solid fill */
  color: #00a6b2;                      /* turquoise text */
  border: 2px solid #00a6b2;           /* turquoise border */
  border-radius: 25px;                 /* rounded shape like Cancel */
  padding: 8px 26px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background-color: #00a6b2;           /* fill on hover */
  color: #fff;                         /* white text */
}


.recaptcha-container {
  margin-top: 30px;
  text-align: center;
}


.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center;
  margin-top: 10px;
}


/* Only style the "terms and conditions" link */
.checkbox-label a {
  color: #00a6b2;           /* turquoise */
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: #007a84;           /* slightly darker on hover */
  text-decoration: underline;
}



/* === Call Us Screen (updated) === */
.callus-box {
  background: transparent !important; /* no white box */
  padding: 0 !important;
  border-radius: 0;
  box-shadow: none;
  max-width: 800px;
  margin: 0 auto;
}

.callus-title {
  font-size: 28px;
  color: #1a1446;
  font-weight: 600;
  margin-bottom: 25px;
}

/* make text area bigger and integrated */
.callus-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto;
  max-width: 800px;
}

.callus-country {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.callus-team {
  font-size: 24px;
  color: #1a1446;
  font-weight: 600;
  margin-bottom: 10px;
}

.callus-hours,
.callus-whatsapp {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.callus-whatsapp a {
  color: #00a651;
  text-decoration: none;
  font-weight: 500;
}
.callus-whatsapp a:hover {
  text-decoration: underline;
}

/* Back button alignment */
.callus-box .button-row {
  margin-top: 25px;
}
.callus-box .button-row a {
  border: 2px solid #00a6b2;
  color: #00a6b2;
  background: transparent;
  border-radius: 25px;
  padding: 8px 22px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.callus-box .button-row a:hover {
  background-color: #00a6b2;
  color: #fff;
}

.contact-popup,
.contact-popup * {
  user-select: none;          /* 禁止文字被选中 */
  -webkit-user-select: none;  /* Safari / Chrome */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* Edge / IE */
}
