@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

.site-footer {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 8px 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Sticky Form  */

.form_container {
  background: #e7e7e7 !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.sticky_form {
  max-width: 468px;
  width: 100%;
  margin: auto;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  display: inline-block;
}

.form_header {
  background: linear-gradient(45deg, rgba(104, 101, 167, 1) 0%, rgba(206, 18, 172, 1) 70%);
  /* max-width: 468px; */
  text-align: center;
  color: #fff;
  padding: 20px 30px;
  position: relative;
}

.form_close {
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
}

.form-heading h2 {
  color: #ffffff !important;
  font-family: "  Poppins", sans-serif;
  font-size: 20px;
  margin: 0px;
}

.form-heading p {
  margin: 0px;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  padding: 0px 0px;
}

/* Form Inputs  */

.form_inputs {
  padding: 20px;
}

.language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.language-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.submit_button_container {
  text-align: center;
  margin-top: 20px;
}

.form-footer-note {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #4b5563;
  font-weight: 700;
}

#submit-btn {
  background: #ce12ac !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-family: Poppins;
  border-bottom: 0;
  text-transform: capitalize !important;
  width: auto;
  text-align: center;
  margin: 0 auto;
  padding: 20px 40px !important;
  height: auto;
  border-radius: 100px !important;
  font-weight: 700;
  border: 0px;
}

.label_wrapper {
  position: relative;
}

.label_wrapper input,
.label_wrapper select {
  box-shadow: none;
  padding-top: 22px;
  /* padding-top: 12px; */
  padding-bottom: 12px;
  border: 0;
  border-bottom: 2px solid #515656;
  padding-left: 0;
  margin-bottom: 10px;
  width: 100%;
  background: #e7e7e7 !important;
  font-size: 12px !important;
  color: #000000 !important;
  border-radius: 0px !important;
}

.label_wrapper select {
  cursor: pointer;
}

.label_wrapper select:not(#country_code) {
  max-width: 25%;
  min-width: 90px;
}

/* Country code dropdown styling */
#country_code {
  background-color: #e7e7e7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 32px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 500;
  min-width: 100px !important;
  max-width: 135px !important;
  flex-shrink: 0;
  box-shadow: none;
  padding-top: 22px;
  padding-bottom: 12px;
  border: 0;
  border-bottom: 2px solid #515656;
  padding-left: 4px;
  margin-bottom: 10px;
}

#country_code option {
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
  color: #000;
  line-height: 1.5;
  cursor: pointer;
}

#country_code::-webkit-scrollbar {
  width: 8px;
}

#country_code::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#country_code::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lang-select  select:focus,
.lang-select  select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
 input:focus,
 select:focus {
  outline: none !important;
  /* border-bottom: 2px solid #ce12ac !important; */
}

.contact_container {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.contact_container select {
  flex-shrink: 0;
}

.contact_container input {
  flex: 1;
  min-width: 0;
  max-width: none !important;
  padding-left: 4px;
}

.text_label {
  position: absolute;
  top: 8px;
  font-size: 12px !important;
  color: #000000 !important;
  border-radius: 0px !important;
  font-family: "  Poppins", sans-serif;
  pointer-events: none;
  transition: .2s ease all;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text_label.active-input {
  top: 0px;
}

.modal-card {
  background: linear-gradient(45deg, rgba(104, 101, 167, 1) 0%, rgba(206, 18, 172, 1) 70%);
  max-width: 90%;
  color: #ffffff;
}

input[type="checkbox" i] {
  accent-color: #ce12ac;
}


/* Modern Floating Form Design */
body {
  /* font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif; */
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 20px; */
  color: #111;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  margin: 0px;
}

/* body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  background-size: 50px 50px;
  animation: float 20s linear infinite;
} */

@keyframes float {
  0% {
    background-position: 0 0
  }

  100% {
    background-position: 50px 50px
  }
}

.container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  /* border-radius:24px; */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* .hero{
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  padding:32px 24px;
  color:#fff;
  position:relative;
  overflow:hidden;
} */

/* .hero::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle,rgba(255,255,255,0.1) 0%,transparent 70%);
  animation:pulse 4s ease-in-out infinite;
} */

/* @keyframes pulse{
  0%,100%{transform:scale(1);opacity:0.5}
  50%{transform:scale(1.1);opacity:0.8}
} */

.hero-top{
  display:flex;
  justify-content:flex-end;
  position:relative;
  z-index:2;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f2f2f2;
  padding: 0px 34px 0px 10px;
  border-radius: 3px;
  border: 1px solid #b9c3cd;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  min-height: 34px;
  min-width: 140px;
}

.lang-select:hover {
  background: #ededed;
  border-color: #9aa5b1;
}

.lang-select .flag {
  width: 18px;
  height: 12px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  pointer-events: none;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lang-select .lang-text {
  color: #111;
  font-weight: 600;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  padding-left: 28px;
}

.flag-us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23ffffff'/%3E%3Crect y='0' width='18' height='1.5' fill='%23b22234'/%3E%3Crect y='3' width='18' height='1.5' fill='%23b22234'/%3E%3Crect y='6' width='18' height='1.5' fill='%23b22234'/%3E%3Crect y='9' width='18' height='1.5' fill='%23b22234'/%3E%3Crect width='7.2' height='6' fill='%233c3b6e'/%3E%3C/svg%3E");
}

.flag-es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23aa151b'/%3E%3Crect y='3' width='18' height='6' fill='%23f1bf00'/%3E%3C/svg%3E");
}

.lang-select select {
  background: transparent;
  border: 0;
  color: transparent;
  padding: 0 26px 0 30px;
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  opacity: 0;
}

.lang-select select option {
  color: #333;
  background: #fff;
}

.lang-select::after {
  content: '▼';
  font-size: 11px;
  color: #333;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* .hero-body{
  padding-top:16px;
  position:relative;
  z-index:2;
} */

/* .hero h1{
  margin:0;
  font-size:1.75rem;
  font-weight:800;
  letter-spacing:-0.5px;
  text-shadow:0 2px 10px rgba(0,0,0,0.1);
} */

.subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 1.05rem;
}

label {
  display: block;
  /* margin:20px 24px; */
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

label span {
  /* display:block; */
  font-size: 10px;
  color: #6b7280;
  /* margin-bottom:8px; */
  font-weight: 500;
}

/* input[type=text],input[type=email],input[type=number],input[name=phone_local],select,textarea{
  width:100%;
  padding:12px 14px;
  border:2px solid #e5e7eb;
  background:#f9fafb;
  border-radius:12px;
  font-size:1rem;
  transition:all 0.3s ease;
  font-family:inherit;
}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#667eea;
  background:#fff;
  box-shadow:0 0 0 4px rgba(102,126,234,0.1);
  transform:translateY(-2px);
} */

/* input::placeholder{color:#9ca3af} */

.row {
  display: flex;
  gap: 12px;
  padding: 0 24px
}

.col {
  flex: 1
}

.phone .phone-row {
  display: flex;
  gap: 12px;
  align-items: center
}

/* select#country_code{
  width:42%;
  min-width:140px;
  padding:12px 14px;
  border-radius:12px;
  border:2px solid #e5e7eb;
  background:#f9fafb;
  font-weight:600;
  cursor:pointer;
  transition:all 0.3s ease;
} */

/* select#country_code:focus{
  border-color:#667eea;
  background:#fff;
} */

/* input#phone_local{flex:1} */

.consent {
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  /* padding:16px 24px; */
  /* background:#f9fafb; */
  /* margin:20px 24px; */
  border-radius: 12px;
  line-height: 1.5;
  margin: 15px 0px 0px 0px;
  cursor: pointer;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.consent + .error-message {
  position: static;
  display: none;
  margin: 4px 0 8px 32px;
  font-size: 13px;
  background: transparent;
  padding: 0;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #667eea;
}

.consent input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #667eea;
}

.consent a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600
}

.consent a:hover {
  text-decoration: underline
}

@media (max-width: 480px) {
  .consent {
    font-size: 0.85rem;
  }
  
  .consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  
  .consent + .error-message {
    margin-left: 30px;
    font-size: 12px;
  }
}

.actions {
  margin: 28px 24px;
  text-align: center
}

/* button{
  padding:14px 40px;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color:#fff;
  border:none;
  border-radius:16px;
  cursor:pointer;
  font-weight:700;
  font-size:1.05rem;
  box-shadow:0 10px 30px rgba(102,126,234,0.4);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
} */

/* button::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
  transition:left 0.5s ease;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 40px rgba(102,126,234,0.5);
}

button:hover::before{left:100%}

button:active{transform:translateY(-1px)} */

.msg {
  /* margin: 16px 24px; */
  /* font-weight: 600; */
  display: none;
  text-align: center;
  font-size: 13px;
  padding: 12px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
  margin: 8px 0;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.form-body {
  background: #fff;
  padding-bottom: 24px
}

/* Reusable card for Step B (floating card design) */
.card {
  max-width: 900px;
  width: 95%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

.card h1 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted {
  color: #6b7280;
  margin-top: 8px;
  font-size: 1.05rem;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
  background: #e5e7eb;
  color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn.secondary:hover {
  background: #d1d5db;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.block {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.preview {
  max-width: 280px;
  max-height: 240px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 8px;
  display: block;
  margin-top: 12px;
  object-fit: contain;
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Modal helpers */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  position: relative;
  z-index: 1001;
}

/* Responsive Design */
@media (max-width:768px) {

  .container {
    border-radius: 20px;
    max-width: 100%;
  }

  .card {
    padding: 24px;
    border-radius: 20px;
    width: 100%;
    margin: 0;
  }

  .card h1 {
    font-size: 1.5rem
  }

  /* .hero{padding:24px 20px}
	.hero h1{font-size:1.4rem} */

  label {
    margin: 16px 20px
  }



  .actions {
    margin: 24px 20px
  }

  .row,
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .field {
    width: 100% !important;
    min-width: 100%;
  }

  .preview {
    max-width: 100%;
    height: auto;
  }

  /* button{
		width:100%;
		padding:14px;
	} */

  .actions-row {
    flex-direction: column;
  }

  .modal-card {
    padding: 24px;
    width: 95%;
  }
}

@media (max-width:480px) {

  /* .hero h1{font-size:1.25rem} */
  /* .hero{padding:20px 16px} */
  label {
    margin: 14px 16px;
    font-size: 0.9rem
  }

  .actions {
    margin: 20px 16px
  }

  .card {
    padding: 20px
  }

  .card h1 {
    font-size: 1.3rem
  }
  
  .form-heading h2 {
    font-size: 18px;
  }
  
  .form-heading p {
    font-size: 13px;
  }
  
  .form_inputs {
    padding: 16px;
  }
  
  #submit-btn {
    padding: 12px 32px !important;
    font-size: 15px !important;
  }
  
  .label_wrapper input,
  .label_wrapper select {
    font-size: 11px !important;
  }
  
  .text_label {
    font-size: 11px;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.modal-card h2 {
  /* color: #1f2937; */
  font-size: 1.5rem;
  margin: 0 0 12px;
}

/* .modal-card button{
  cursor:pointer;
  transition:all 0.3s ease;
}

.modal-card button:hover{
  transform:translateY(-2px);
  opacity:0.9;
} */

/* Form inputs inside cards */
/* .card input[type=text],
.card input[type=email],
.card input[type=number],
.card input[type=date],
.card select,
.card textarea{
  width:100%;
  padding:12px 14px;
  border:2px solid #e5e7eb;
  border-radius:12px;
  background:#f9fafb;
  font-size:1rem;
  transition:all 0.3s ease;
  font-family:inherit;
} */

/* .card input:focus,
.card select:focus,
.card textarea:focus{
  outline:none;
  border-color:#667eea;
  background:#fff;
  box-shadow:0 0 0 4px rgba(102,126,234,0.1);
  transform:translateY(-2px);
} */

/* .card input[readonly]{
  background:#e5e7eb;
  color:#6b7280;
  cursor:not-allowed;
} */

.card label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.label-muted {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
}

.field {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .field {
  flex: 1;
  min-width: 200px;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width:520px) {
  .card {
    margin: 18px;
    padding: 14px
  }

  .preview {
    max-width: 100%;
    height: auto
  }
  
  #country_code {
    min-width: 120px !important;
    max-width: 140px !important;
    font-size: 10px !important;
    padding-right: 25px !important;
  }
  
  .contact_container {
    flex-direction: row;
    gap: 8px;
  }
  
  .contact_container select,
  .contact_container input {
    width: 100%;
  }
}

/* Extra Small screens */
@media (max-width: 375px) {
  .form-heading h2 {
    font-size: 16px;
  }
  
  .form_inputs {
    padding: 12px;
  }
  
  #submit-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
  
  .consent {
    font-size: 0.8rem;
  }
  
  .label_container {
    gap: 12px;
  }
}

/* Small screens */
@media (max-width:520px) {
  .row {
    flex-direction: column
  }

}

@media (max-width:520px) {
  .row {
    flex-direction: column
  }
}
/* Cursor pointer for all buttons */
button, 
.btn, 
input[type="submit"], 
input[type="button"],
#submit-btn,
#uploadBtn,
label[for] {
  cursor: pointer !important;
}

/* Error message styling */
.error-message {
  display: none;
  color: #ef4444;
  font-size: 10px;
  position: absolute;
  top: 8px;
  right: 0;
  font-weight: 500;
  background: #e7e7e7;
  padding: 0 2px;
  z-index: 1;
}

/* Select dropdown alignment */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.lang-select select {
  background-image: none !important;
  padding-right: 0 !important;
}

/* Input validation states (only after touch) */
.touched:invalid {
  border-bottom-color: #ef4444 !important;
}

.touched:valid {
  border-bottom-color: #10b981 !important;
}

/* Custom Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: auto;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: modalSlideIn 0.3s ease-out;
  margin: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-box h3 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

.modal-box p {
  margin: 0 0 20px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-secondary, .btn-primary {
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover, .btn-primary:hover {
  background: #d1d5db;
}

.btn-secondary:active, .btn-primary:active {
  transform: scale(0.98);
}
