@font-face {
  font-family: "YekanBakh";
  src: url("./fonts/YekanBakhFaNum-Regular.ttf");
}
html {
  scroll-behavior: smooth;
}

:root {
  /* Brand Colors */
  --color-primary: #fdd85d;
  --color-secondary: #00296b;

  /* Buttons */
  --color-btn-primary: #4361ee;

  --color-success: #16a34a;
  --color-danger: #dc2626;

  /* Neutral */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: #cccccc;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  direction: rtl;
}
body {
  font-family: "YekanBakh";
  width: 100%;
  font-size: 16px;
}
a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
}
ul {
  list-style: none;
}

button {
  font-family: "YekanBakh";
}
button:hover {
  cursor: pointer;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-btn-primary);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--color-btn-primary);
  border: 1px solid var(--color-btn-primary);
}
.section-title {
  background-color: var(--color-secondary);
  padding: 20px;
  border-radius: 15px;
  color: var(--color-white);
  font-weight: bold;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: "YekanBakh";
  font-size: 14px;
  color: #767676;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  padding-left: 50px;
  cursor: pointer;
}

.custom-select select:focus {
  outline: none;
  border-color: var(--color-secondary);
}
.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: "YekanBakh";
}

.form-control.active {
  display: block !important;
}

.text-blue {
  color: blue;
}
.container {
  /* margin: 0 auto;
  width: 1600px; */
  width: min(1600px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}
.form-container {
  width: min(700px, 100%);
}
header {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.logo {
  width: 150px;
  height: auto;
}
.menu {
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
}

.menu-item {
  position: relative;
}

.menu-btn {
  background-color: #fff;
  padding: 8px 12px;
  border: 2px solid var(--color-secondary);
  border-radius: 7px;
  display: inline-block;
}

.dropdown,
.submenu {
  position: absolute;
  min-width: 220px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: none;
  z-index: 1000;
}

.dropdown {
  top: 100%;
  right: 0;
}

.submenu {
  top: 0;
  right: 100%;
}

.menu-item:hover > .dropdown {
  display: block;
}

.has-submenu:hover > .submenu {
  display: block;
}

.dropdown li,
.submenu li {
  position: relative;
}

.dropdown li a,
.dropdown li span,
.submenu li a,
.submenu li span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.dropdown li a:hover,
.dropdown li span:hover,
.submenu li a:hover,
.submenu li span:hover {
  background-color: #f2f2f2;
}

.has-submenu > span::after {
  content: "◀";
  font-size: 10px;
}

.signup-section {
  width: 100%;
  height: 200px;
  background-color: var(--color-secondary);
  display: flex;
  justify-content: center;
  border-radius: 20px;
  align-items: center;
  flex-direction: column;
  color: #fff;
  gap: 20px;
  margin-bottom: 60px;
}
.signup-section p {
  font-size: 20px;
}
.signup-section div {
  display: flex;
  gap: 20px;
}
.signup-btn {
  padding: 15px 30px;
  background-color: var(--color-primary);
  border-radius: 10px;
  font-weight: bold;
  color: #000;
  font-size: 16px;
}
.desc-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
}
.desc-section span {
  font-weight: bold;
}
.desc-section p {
  margin-bottom: 10px;
}
.desc-section .desc-box-container {
  display: flex;
  gap: 30px;
}
.desc-section .desc-box {
  padding: 10px 20px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-secondary);
  border-radius: 10px;
}
footer {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: var(--color-secondary);
  padding: 60px 25px;
  color: #fff;
}
footer .footer-container {
  width: 1600px;
  display: flex;
  justify-content: space-around;
}

footer section.footer-info {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.app-box {
  display: flex;
  gap: 5px;
}
.app-box-btn {
  background-color: var(--color-primary);
  padding: 5px 10px;
  border-radius: 10px;
}

.social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
}
footer section.footer-qrcode {
  width: 20%;
}

footer section.footer-logo {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.signup-form-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  flex-direction: column;
  padding-top: 70px;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  border: 2px solid var(--color-secondary);
  border-radius: 20px;
  margin-bottom: 30px;
}

.form-step.active {
  display: flex;
}

.form-step h2 {
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.form-step label {
  font-weight: bold;
  margin-bottom: 20px;
}
.form-step .profile-section,
.form-step .id-section,
.form-step .license-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-step .profile-section div,
.form-step .id-section div,
.form-step .license-section div {
  display: flex;
  flex-direction: column;
}
.form-step .profile-section ol,
.form-step .id-section ol,
.form-step .profile-license-section ol,
.form-step .sign-section ol,
.form-step .license-section ol {
  font-size: 12px;
  padding: 10px 20px 0 30px;
  margin-bottom: 20px;
}

.form-step .contract-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-step .contract-confirm label {
  margin-bottom: 0;
}
.form-step .contract-confirm input {
  width: fit-content;
}

.step-actions {
  display: flex;
  gap: 10px;
}

.step-actions a {
  flex: 1;
  text-align: center;
}

.success-message {
  display: none;
  padding: 40px;
  border-radius: 20px;
  background-color: var(--color-secondary);
  color: white;
  text-align: center;
}
.success-message p {
  margin-bottom: 20px;
}

.success-message.active {
  display: block;
}

#closeSuccessBtn {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background-color: var(--color-primary);
  font-family: "YekanBakh";
  font-weight: bold;
}

#about-us {
  margin-bottom: 100px;
  padding-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#about-us .about-us-desc {
  text-align: justify;
  font-size: 16px;
  width: 90%;
  line-height: 25px;
}
#contact-us {
  margin-bottom: 100px;
  padding-top: 70px;
}

#contact-us .contact-us-desc {
  padding-right: 80px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}

#business {
  margin-bottom: 100px;
  padding-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#businessForm .form-step {
  text-align: center;
  font-size: 16px;
}

.business-success-message {
  display: none;

  margin-top: 20px;

  background-color: var(--color-secondary);
  color: white;

  padding: 30px;

  border-radius: 20px;

  text-align: center;
}

.business-success-message.active {
  display: block;
}

.business-success-message p {
  line-height: 35px;
  text-align: center;
  margin-bottom: 15px;
}

#request-with-box {
  margin-bottom: 100px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.delivery-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.delivery-step.active {
  display: flex;
}

.delivery-step-actions {
  display: flex;
  gap: 10px;
}

.delivery-step-actions a {
  flex: 1;
  text-align: center;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
}

.map {
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  font-size: 40px;
  z-index: 1000;
  pointer-events: none;
}

.confirm-location-btn {
  width: 100px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background-color: var(--color-success);
  font-weight: bold;
  color: #fff;
}

.delivery-form-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.delivery-first-form {
  gap: 30px;
}

.delivery-form-box option {
  color: #000;
}

.double-input {
  display: flex;
  gap: 10px;
}

.double-input input {
  width: 50%;
}

.delivery-success-message {
  display: none;
  background-color: var(--color-secondary);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.delivery-success-message.active {
  display: block;
}

#FAQ {
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 50px;
}

#FAQ .faq-desc {
  width: 90%;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
#FAQ .faq-desc div {
  border: 1px solid var(--color-secondary);
  border-radius: 10px;
  padding: 15px 20px;
}

#signaturePad {
  width: 100%;
  height: 250px;
  border: 2px solid var(--color-secondary);
  border-radius: 10px;
  touch-action: none;
  background: white;
}

.signature-actions {
  margin-top: 10px;
}

#clearSignature {
  padding: 10px 20px;
}

.auth-step {
  display: none;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  border: 2px solid var(--color-secondary);
  border-radius: 20px;
  width: 700px;
}

.auth-step.active {
  display: flex;
}

.auth-step h2 {
  color: var(--color-secondary);
}

.otp-actions {
  display: flex;
  gap: 10px;
  flex: 1;
}

#backToMobileBtn {
  background: var(--color-secondary);
  color: white;
}

.field-error {
  color: red;
  font-size: 12px;
  margin-top: -8px;
}

.input-error {
  border: 1px solid red !important;
}

.snackbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-danger);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 9999;
  display: none;
}

.snackbar.show {
  display: block;
}

/* responsive */
@media screen and (max-width: 430px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-inline: 12px;
  }

  /* HEADER */

  header {
    gap: 20px;
  }

  .logo {
    width: 120px;
    display: block;
    margin: 0 auto;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .menu-btn {
    padding: 8px;
    font-size: 11px;
  }

  .dropdown,
  .submenu {
    min-width: 180px;
  }

  /* HERO */

  .signup-section {
    padding: 20px;
    height: auto;
    text-align: center;
  }

  .signup-section p {
    font-size: 16px;
    line-height: 28px;
  }

  .signup-section div {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .signup-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  /* DESCRIPTION */

  .desc-section {
    text-align: center;
  }

  .desc-section p {
    line-height: 28px;
  }

  .desc-section .desc-box-container {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  /* FORMS */

  .auth-step,
  .form-container,
  .form-step {
    width: 100% !important;
  }

  .auth-step {
    padding: 20px;
  }

  .form-step {
    padding: 20px;
  }

  .section-title {
    padding: 15px;
    font-size: 18px;
    margin-bottom: 25px;
  }

  /* FILE UPLOAD SECTIONS */

  .form-step .profile-section,
  .form-step .id-section,
  .form-step .license-section,
  .profile-license-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .form-step .profile-section img,
  .form-step .id-section img,
  .form-step .license-section img,
  .profile-license-section img {
    width: 160px;
    height: auto;
  }

  /* CONTRACT */

  #step-contract {
    width: 100% !important;
  }

  .contract-confirm {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  /* BUTTONS */

  .step-actions,
  .otp-actions,
  .delivery-step-actions {
    flex-direction: column;
  }

  .step-actions .btn,
  .otp-actions .btn,
  .delivery-step-actions .btn {
    width: 100%;
  }

  /* DELIVERY */

  .map-wrapper {
    height: 250px;
  }

  .double-input {
    flex-direction: column;
  }

  .double-input input {
    width: 100%;
  }

  /* ABOUT */

  #about-us .about-us-desc {
    width: 100%;
    font-size: 14px;
    line-height: 30px;
  }

  /* CONTACT */

  #contact-us .contact-us-desc {
    padding-right: 0;
    font-size: 14px;
    line-height: 28px;
  }

  /* FAQ */

  #FAQ .faq-desc {
    width: 100%;
  }

  #FAQ .faq-desc div {
    padding: 12px;
  }

  /* SUCCESS MESSAGES */

  .success-message,
  .business-success-message,
  .delivery-success-message {
    width: 100%;
    padding: 25px;
  }

  /* SIGNATURE */

  #signaturePad {
    height: 180px;
  }

  /* FOOTER */

  footer {
    padding: 40px 15px;
  }

  footer .footer-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  footer section.footer-info,
  footer section.footer-qrcode,
  footer section.footer-logo {
    width: 100%;
    text-align: center;
  }

  .app-box {
    flex-direction: column;
    align-items: center;
  }

  .social {
    flex-direction: column;
  }

  footer section.footer-logo img {
    width: 150px;
    height: auto;
  }

  footer section.footer-qrcode img {
    width: 160px;
    height: auto;
  }

  /* SNACKBAR */

  .snackbar {
    right: 10px;
    left: 10px;
    width: auto;
    text-align: center;
  }
}

/* ======================================
   RESPONSIVE
====================================== */

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font-size: 16px;
}

/* TABLET */
@media (max-width: 992px) {
  .container {
    padding-inline: 16px;
  }

  footer .footer-container {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  footer section.footer-info,
  footer section.footer-qrcode,
  footer section.footer-logo {
    width: 100%;
    text-align: center;
  }

  .social,
  .social-icons,
  .app-box {
    justify-content: center;
  }

  .desc-section .desc-box-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-step .profile-section,
  .form-step .id-section,
  .form-step .license-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section-title {
    margin-bottom: 30px;
    padding: 16px;
    font-size: 18px;
    text-align: center;
  }

  .signup-section {
    height: auto;
    padding: 30px 20px;
    text-align: center;
  }

  .signup-section p {
    font-size: 16px;
    line-height: 1.8;
  }

  .signup-section div {
    width: 100%;
    flex-direction: column;
  }

  .signup-btn {
    width: 100%;
  }

  .menu {
    flex-wrap: wrap;
  }

  .dropdown,
  .submenu {
    min-width: 180px;
  }

  .form-step {
    padding: 20px;
  }

  .auth-step {
    width: 100%;
    padding: 20px;
  }

  .step-actions {
    flex-direction: column;
  }

  .otp-actions {
    flex-direction: column;
  }

  .delivery-step-actions {
    flex-direction: column;
  }

  .double-input {
    flex-direction: column;
  }

  .double-input input {
    width: 100%;
  }

  .map-wrapper {
    height: 260px;
  }

  .map-pin {
    font-size: 32px;
  }

  .success-message,
  .business-success-message,
  .delivery-success-message {
    padding: 25px;
  }

  #contact-us .contact-us-desc {
    padding-right: 0;
  }

  #about-us .about-us-desc,
  #FAQ .faq-desc {
    width: 100%;
  }

  footer {
    padding: 40px 20px;
  }
}

/* iPhone 14 Pro Max */
@media (max-width: 430px) {
  .container {
    padding-inline: 12px;
  }

  .logo {
    width: 120px;
  }

  .form-step {
    padding: 16px;
    border-radius: 16px;
  }

  .auth-step {
    padding: 16px;
    border-radius: 16px;
  }

  .btn {
    padding: 12px;
  }

  .signup-btn {
    padding: 12px;
  }

  .section-title {
    font-size: 16px;
  }

  .map-wrapper {
    height: 220px;
  }

  .delivery-form-box {
    gap: 12px;
  }

  .form-control {
    padding: 10px;
  }

  .custom-select select {
    padding: 10px;
  }

  .snackbar {
    right: 10px;
    left: 10px;
    bottom: 10px;
    text-align: center;
  }
}

/* SMALL DEVICES */
@media (max-width: 360px) {
  .section-title {
    font-size: 14px;
  }

  .signup-section p {
    font-size: 14px;
  }

  .btn {
    font-size: 13px;
  }

  .form-control {
    font-size: 14px;
  }

  .custom-select select {
    font-size: 14px;
  }

  .map-wrapper {
    height: 200px;
  }
}
