@font-face {
  font-family: dana;
  src: url(./font/Dana-FaNum-Medium.eot);
  src: url(./font/Dana-FaNum-Medium.ttf);
  src: url(./font/Dana-FaNum-Medium.woff);
  src: url(./font/Dana-FaNum-Medium.woff2);
}

@media screen and (max-width: 576px) {
  body .wrapper {
    max-width: 576px;
    height: 100%;
    background-color: #ffae44;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .wrapper .main {
    width: inherit;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .logo img {
    max-width: 100%;
    max-height: 130px;
    margin-top: 20px;
  }
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body .wrapper {
  width: inherit;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper .main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: auto;
  touch-action: none;
}

.physics-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.content-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.logo img {
  width: 250px;
  height: 100px;
  margin-top: 20px;
}

.co-form {
   width: 92% !important;
    height: 800px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
}

h1 {
 font-size: 25px !important;
  color: white;
  margin: 18px 0 8px;
  text-align: center;
}
h2 {
  color: gray;
  opacity: 0.7;
  width: 80%;
  height: 15px;
  text-align: center;
  font-size: 15px !important;
}
.main-form {
  width: 100%;
  height: 900px;
  background-color: #ffb101;
  /* border: 1px solid gray; */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-bottom: 18px;
  font-family: dana;
}

.main-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: 30px; */
}

.form-alert {
  width: 80%;
  min-height: 22px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #444;
}

.form-alert.success {
  color: #1f7a1f;
}

.form-alert.error {

width: 300px;
height:250px !important;
background-color: #ffae44;
z-index:999;
color: #b00020;

}

form .line1,
form .line2,
form .line3,
form .line4 {
  width: 100%;
  height: 50px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.line1 input,
.line2 input,
.line3 input,
.line4 input {
  width: 35%;
  height: 52%;
  padding-left: 10px;
  border-radius: 5px;
  border: 1px solid white;
  font-family: dana;
}

input:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgb(145, 145, 145);
}

#details {
  width: 80%;
  height: 110px;
  border-radius: 10px;
  border: 1px solid white;
  box-sizing: border-box;
  padding: 10px;
  resize: vertical;
  font-family: dana;
}

.btns {
  width: 70%;
  height: 42px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-family: dana;
}

.btns button,
.btns .btn-like {
  width: 42%;
  background-color: white;
  border: 1px solid white;
  border-radius: 15px;
  font-size: 13px;
  color: gray;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btns button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.social {
  width: 400px;
  height: 7%;
  border-radius: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 20px;
  text-decoration: none;
}

.social a {
  text-decoration: none;
  color: black;
  font-size: 30px;
}

.social i:hover {
  cursor: pointer;
  color: #ffae44;
  transition: 300ms ease-in-out;
}
/* ---------------- Tailwind-like breakpoints ----------------
   sm: 640px
   md: 768px
   lg: 1024px
   xl: 1280px
------------------------------------------------------------- */

/* موبایل و تبلت: شکل‌های شناور خاموش */
@media (max-width: 1023px) {
  .physics-layer {
    display: none !important;
  }
}

/* Base (mobile-first) */
.co-form {
  width: 92%;
  max-width: 520px;
  height: auto;
}

.main-form {
  height: 1000px !important;
  max-height: 1000px !important;
}

/* inputs: تو موبایل ستونی */
form .line1,
form .line2,
form .line3,
form .line4 {
  height: auto;
  flex-direction: row;
  gap: 30px;
  margin-bottom: 14px;
}

.line1 input,
.line2 input,
.line3 input,
.line4 input {
  width: 30%;
  height: 44px;
}

/* دکمه‌ها تو موبایل زیر هم */
.btns {
  width: 80%;
  height: auto;
  flex-direction: column;
  gap: 10px;
}

.btns button,
.btns .btn-like {
  width: 100%;
  height: 44px;
}

/* Social تو موبایل کوچکتر */
.social {
  width: 92%;
  max-width: 420px;
  gap: 22px;
}

/* sm >= 640px */
@media (max-width: 640px) {
  .wrapper {
    height: 950px !important;
    background-color: white !important;
  }
  .main-form {
    overflow-y: auto;
    overflow-x: hidden;
  }
  h1 {
    font-size: 25px;
  }
  input {
    font-size: 11px;
  }
  .co-form {
    width: 85%;
    max-width: 640px;
  }

  .social {
    margin-bottom: 50px;
    width: 420px;
  }
}

/* md >= 768px (Tablet) */
@media screen and (min-width: 640px) and (max-width: 768px) {
  .main {
    height: 100% !important;
  }

  .main-form {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .co-form {
    width: 70%;
    max-width: 720px;
  }

  /* تو تبلت هم هنوز ستونی بمونه تا مرتب و راحت باشه */
  form .line1,
  form .line2,
  form .line3,
  form .line4 {
    flex-direction: column;
  }

  .line1 input,
  .line2 input,
  .line3 input,
  .line4 input {
    width: 80%;
  }

  .btns {
    width: 80%;
    flex-direction: row;
  }

  .btns button,
  .btns .btn-like {
    width: 42%;
  }
}

/* lg >= 1024px (Desktop) */
@media (min-width: 1024px) {
  .co-form {
    width: 35%;
    height: 90%;
    max-width: none;
  }

  .main-form {
    height: 90%;
    max-height: none;
  }

  /* برگشت به دو ستونه مثل نسخه اصلی */
  form .line1,
  form .line2,
  form .line3,
  form .line4 {
    height: 50px;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 18px;
  }

  .line1 input,
  .line2 input,
  .line3 input,
  .line4 input {
    width: 35%;
    height: 52%;
  }

  .btns {
    width: 70%;
    height: 42px;
    flex-direction: row;
  }

  .btns button,
  .btns .btn-like {
    width: 42%;
    height: auto;
  }

  .social {
    width: 400px;
    gap: 30px;
  }
}

/* xl >= 1280px (Large desktop) */
@media (min-width: 1280px) {
  .co-form {
    width: 32%;
  }
}
.whatsapp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 100;
}
.chlang {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: dana;
   border-radius: 50px;
}
.chlang a {
  width: inherit;
  height: inherit;
  border-radius: 50px;
  display:flex; 
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  color: black;
  text-decoration: none;
}
.chlang:hover {
  background-color: #ffae44;
  border: 1px gray solid;
  transition: 300ms ease-in-out;
}
.chlang:hover a {
  color: white;
}
#sendBtn:hover {
  background-color: #ffae44;
  color: white;
  transition: 300ms ease-in-out;
}
.btn-like:hover {
  background-color: #ffae44;
  color: white;
  transition: 300ms ease-in-out;
}
