/**
 * Stylesheet: XC Register Form (Contact Form 7)
 * Design: High-aesthetic medical registration form with wave gradient
 * 
 * @package MedFit
 * @version 1.0.3
 */

/* ==========================================================================
   1. WIDGET & FORM CONTAINER RESET
   ========================================================================== */

.widget_xc_register_form,
.widget.widget_xc_register_form {
  padding: 0 !important;
  margin-bottom: 25px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.widget_xc_register_form .widget-title {
  display: none !important;
}

.xc-register-card p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

.xc-register-card p br {
  display: none !important;
}

.xc-register-card .xc-form-title br {
  display: block !important;
}

/* ==========================================================================
   2. CARD CONTAINER
   ========================================================================== */

.xc-register-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #cce9fd url("../img/xc-wave-bg.svg") no-repeat center bottom / cover;
  border-radius: 20px;
  padding: 26px 20px 22px 20px;
  box-shadow: 0 10px 28px rgba(7, 30, 166, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}

form.xc-register-form {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   3. HEADER / TITLE
   ========================================================================== */

.xc-register-card .xc-form-header {
  text-align: center;
  margin-bottom: 18px;
}

.xc-register-card .xc-form-title {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif !important;
  color: #071ea6 !important;
  font-size: 18.5px !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* ==========================================================================
   4. FORM FIELDS & GROUPS
   ========================================================================== */

.xc-register-card .xc-form-group {
  position: relative;
  margin-bottom: 12px;
}

.xc-register-card .xc-form-group .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
}

/* Input Họ & tên */
.xc-register-card input[type="text"].xc-form-input {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;
  border: 1.5px solid #1e3256 !important;
  border-radius: 50px !important;
  background-color: #ffffff !important;
  padding: 0 18px !important;
  font-size: 13.5px !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif !important;
  color: #1e293b !important;
  box-shadow: none !important;
  margin: 0 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xc-register-card input[type="text"].xc-form-input::placeholder,
.xc-register-card input[type="tel"].xc-phone-input::placeholder {
  color: #64748b !important;
  font-size: 13.5px !important;
  opacity: 1 !important;
}

.xc-register-card input[type="text"].xc-form-input:focus {
  border-color: #071ea6 !important;
  box-shadow: 0 0 0 2.5px rgba(7, 30, 166, 0.18) !important;
}

/* ==========================================================================
   5. PHONE FIELD WITH VIETNAM FLAG PREFIX
   ========================================================================== */

.xc-register-card .xc-phone-wrap {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 42px !important;
  border: 1.5px solid #1e3256 !important;
  border-radius: 50px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  position: relative;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xc-register-card .xc-phone-wrap:focus-within {
  border-color: #071ea6 !important;
  box-shadow: 0 0 0 2.5px rgba(7, 30, 166, 0.18) !important;
}

.xc-register-card .xc-phone-prefix {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 10px 0 14px !important;
  border-right: 1px solid #d1d5db !important;
  height: 22px !important;
  line-height: 22px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

.xc-register-card .xc-phone-prefix .xc-flag-vn {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.xc-register-card .xc-phone-prefix .xc-dial-code {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-left: 2px;
  letter-spacing: -0.2px;
}

.xc-register-card .xc-phone-prefix .xc-arrow {
  font-size: 9px;
  color: #64748b;
  margin-left: 1px;
  display: inline-block;
}

.xc-register-card .xc-phone-wrap .wpcf7-form-control-wrap {
  flex: 1 1 auto !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.xc-register-card input[type="tel"].xc-phone-input {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 50px 50px 0 !important;
  background: transparent !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif !important;
  color: #1e293b !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   6. SERVICE SELECT DROPDOWN
   ========================================================================== */

.xc-register-card select.xc-form-input {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;
  border: 1.5px solid #1e3256 !important;
  border-radius: 50px !important;
  background-color: #ffffff !important;
  padding: 0 36px 0 18px !important;
  font-size: 13.5px !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif !important;
  color: #334155 !important;
  box-shadow: none !important;
  margin: 0 !important;
  outline: none !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 2L6 6.5L10.5 2' stroke='%231e3256' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 11px 7px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xc-register-card select.xc-form-input:focus {
  border-color: #071ea6 !important;
  box-shadow: 0 0 0 2.5px rgba(7, 30, 166, 0.18) !important;
}

/* ==========================================================================
   7. SUBMIT BUTTON
   ========================================================================== */

.xc-register-card .xc-submit-group {
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
  position: relative;
}

.xc-register-card input[type="submit"].xc-btn-submit {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;
  background-color: #071ea6 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 0 20px !important;
  margin: 0 auto !important;
  box-shadow: 0 4px 14px rgba(7, 30, 166, 0.35) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif !important;
}

.xc-register-card input[type="submit"].xc-btn-submit:hover {
  background-color: #051680 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(7, 30, 166, 0.45) !important;
}

.xc-register-card input[type="submit"].xc-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(7, 30, 166, 0.3) !important;
}

/* ==========================================================================
   8. CONTACT FORM 7 VALIDATION & NOTIFICATIONS
   ========================================================================== */

.xc-register-card .wpcf7-not-valid-tip {
  display: block !important;
  color: #dc2626 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  padding-left: 14px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.xc-register-card .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  margin: 0 !important;
}

.xc-register-card .wpcf7-response-output {
  margin: 12px 0 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  font-weight: 500 !important;
}

.xc-register-card form.sent .wpcf7-response-output {
  background-color: #ecfdf5 !important;
  border: 1px solid #10b981 !important;
  color: #065f46 !important;
}

.xc-register-card form.failed .wpcf7-response-output,
.xc-register-card form.invalid .wpcf7-response-output {
  background-color: #fef2f2 !important;
  border: 1px solid #ef4444 !important;
  color: #991b1b !important;
}

.xc-register-card .screen-reader-response {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}
