.containercontact {
  display: flex;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.contact-wrapper {
  padding: 10px 10px;
}

.contact-wrapper {
  overflow: hidden;
  min-height: auto;
}

/* Contact Form Overlay for Index Page */
.contact-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px 0;
}

.contact-form-overlay .contact-section-bg {
  min-height: auto;
  padding: 20px 0;
}

/* Form Close Button */
.form-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    border: 2px solid #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 600;
}
.form-close-btn:hover {
  background: white;
  color: #333;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Form Only Card - Full Width */
.contact-card.form-only {
  max-width: 600px;
  margin: 40px auto;
  overflow: visible;
}

.contact-card.form-only .contact-right {
  width: 100%;
  padding: 40px;
}

.icon_css svg {
  stroke: #fff;
  stroke-width: 1;
  fill: none;
}

/* CARD */
.contact-card {
  margin: 40px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;

}
.bg-gif {
  background-image: url("../images/contact_bg.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Video background */
.contact-left video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark overlay */
.contact-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 67%);
  z-index: 2;
}

/* Content above video */
.contact-left h1,
.contact-left p,
.contact-info,
.trial-text {
  position: relative;
  z-index: 3;
}

.contact-left {
  width: 45%;
  color: white;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.contact-left p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-info {
  margin-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.icon_css {
  background: transparent;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  border: 2px solid #fff;
  color: #fff;
}

.icon_css svg {
  color: #fff;
}

.trial-text {
  margin-top: 40px;
  font-weight: 600;
}

/* RIGHT */
.contact-right {
  width:56%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.contact-right h2 {
  font-size: 32px;
}

.subtext {
  color: #6b7280;
  margin-bottom: 30px;
}

/* FORM */
.form_row {
  display: flex;
  gap: 20px;
}

.field {
  flex: 1;
  margin-bottom: 10px;
}

.field .star {
  color: red;
  font-size: 16px;
  padding-left: 2px;
}

.contact_css label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.contact_css input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #b5b7bb;
  font-size: 14px;
}
.otp-row input {
  letter-spacing: 6px;
  text-align: center;
  font-size: 18px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #f25521;
}

.contact button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #f25521, #f97316);
  border: none;
  border-radius: 5px;
  color: white;
  margin-bottom: 10px;
  font-size: 18px;
  cursor: pointer;
}

.contact_css button:hover {
  opacity: 0.95;
}
/* OTP MODAL */
.otp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.otp-box {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.otp-box h3 {
  margin-bottom: 10px;
}

.otp-box p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 15px;
}

.otp-box input {
  width: 100%;
  padding: 8px;
  text-align: center;
  /* letter-spacing: 6px; */
  font-size: 18px;
  margin-bottom: 10px;
}

.otp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.otp-cancel {
  background: #e5e7eb;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* ERRORS */
.error {
  color: red;
  font-size: 12px;
  padding-top: 5px;
  min-height: 20px;
  display: block;
}

.success {
  display: none;
  color: green;
  text-align: center;
  margin-top: 15px;
}
/* PHONE WITH COUNTRY CODE */
.phone-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #b5b7bb;
  border-radius: 6px;
  height: 42px;
  padding: 0 10px;
}

.country-code {
  font-weight: 600;
  margin-right: 8px;
  color: #333;
}

.phone-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  font-size: 14px;
}

/* ERROR */
.phone-wrapper.error {
  border-color: red;
}

input.error-border,
select.error-border {
  border: 1px solid red;
}
/* OTP INPUT CONTAINER */
.otp-inputs {
  display: flex;
  justify-content: center;
 gap: 6px;
  margin: 20px 20px;
}

/* OTP BOXES */
.otp-digit {
  width: 48px !important;
  height: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1.5px solid #b5b7bb;
  border-radius: 8px;
  outline: none;
}

/* Remove inherited full-width */
.otp-digit {
  padding: 0 !important;
}

/* Focus state */
.otp-digit:focus {
  border-color: #f25521;
  box-shadow: 0 0 0 2px rgba(242, 85, 33, 0.2);
}


/* MOBILE */
@media (max-width: 768px) {
  .contact-form-overlay {
    padding: 10px 0;
  }

  .contact-form-overlay .contact-card {
    margin: 20px;
  }

  .contact-card.form-only {
    margin: 20px;
    max-width: 100%;
  }

  .contact-card.form-only .contact-right {
    padding: 20px;
  }

  .form-close-btn {
    width: 35px;
    height: 35px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .contact-left {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
  }

  .contact-left h1 {
    font-size: 28px;
  }

  .contact-left p {
    font-size: 14px;
  }

  .form_row {
    display: contents;
    gap: 20px;
    text-align: start;
  }

  .contact_css label {
    text-align: start;
  }

  .contact-right {
    width: 100%;
    margin-top: 30px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  .contact-right h2 {
    font-size: 24px;
  }

  .contact-card {
    max-width: 1100px;
    margin: auto;
    display: block;
  }

  .contact-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
  }

  .otp-inputs {
    display: flex;
    justify-content: center;
    margin: 20px 20px;
  }

  .otp-digit {
    width: 40px !important;
    height: 40px;
    font-size: 16px;
  }

  .info-item {
    margin-bottom: 15px;
  }

  .icon_css {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Tablet Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .contact-left {
    width: 40%;
  }

  .contact-right {
    width: 60%;
  }

  .contact-left h1 {
    font-size: 32px;
  }
}