* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  direction: rtl;
}

*:focus {
  outline: 2px solid #fff2af;
  outline-offset: 2px;
  transition: all 0.2s;
}

@font-face {
  font-family: "kalamehBlack";
  src: url("KALAMEH-BLACK.TTF");
  font-display: swap;
}

@font-face {
  font-family: "kalamehBold";
  src: url("KALAMEH-BOLD.TTF");
  font-display: swap;
}

@font-face {
  font-family: "kalamehRegular";
  src: url("KALAMEH-REGULAR.TTF");
  font-display: swap;
}

@font-face {
  font-family: "kalamehThin";
  src: url("KALAMEH-THIN.TTF");
  font-display: swap;
}

body {
  background-color: #171b13;
}

.container {
  max-width: 54rem;
  margin: 1.25rem auto;
  padding: 1.25rem;
}

h1,
h2 {
  color: #ecdfcb;
  text-align: center;
  text-wrap: nowrap;
}

h1 {
  margin-bottom: 2rem;
  font-family: "kalamehBlack";
  font-size: 1.4rem;
  transform: translateY(-0.5rem);
}

h2 {
  font-family: "kalamehBold";
  font-size: 1.3rem;
  margin-top: 3rem;
}

section::before {
  content: "";
  display: block;
  height: 1px;
  background-color: #3d3e38;
  width: 100%;
  margin: 1.5rem auto;
  opacity: 0.5;
}

label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: "kalamehRegular";
  color: #ecdfcb;
}

#contactMethodLabel {
  margin-bottom: 0.7rem;
}

.workStyleCategory label,
.decisionMakersCategory label {
  margin: 0;
  font-size: 1rem;
}

textarea {
  width: 100%;
  padding: 0.7rem 0.9rem 2rem 1rem;
  margin-bottom: 3.5em;
  border: 2px solid #3d3e38;
  color: #ecdfcb;
  border-radius: 13px;
  font-size: 0.9rem;
  background-color: transparent;
  resize: vertical;
  font-family: "kalamehRegular";
  min-height: clamp(2.5em, 5em, 8em);
  line-height: 1.6;
  overflow: hidden;
}

.clientNotesCategory textarea {
  margin-bottom: 5em;
}

.workStyle,
.decisionMakers {
  appearance: none;
  display: block;
  min-width: 4rem;
  height: 1.75rem;
  background-color: #3d3e38;
  border-radius: 6px;
  outline: none;
  transition: background-color, transform, outline 0.2s;
  cursor: pointer;
}

.workStyle:checked,
.decisionMakers:checked,
.submissionPrivacyPolicy:checked {
  background-color: #fff2af;
  transform: scaleY(1.1);
  outline: 2px solid #fff2af;
}

.workStyle:hover,
.decisionMakers:hover {
  outline: 2px solid rgba(255, 242, 175, 0.5);
}

.workStyle:checked + label,
.decisionMakers:checked + label {
  font-family: "kalamehBold";
  text-shadow: 1px 1px 10px rgba(236, 223, 203, 0.4);
}

.sectionTitle {
  margin-bottom: 2.5rem;
}

.contactMethod {
  outline: none;
  border: none;
}

.contactMethod option {
  font-family: "kalamehThin";
  appearance: none;
}

.contactMethodContainer {
  margin-top: 3.5rem;
}

.workStyleSelection,
.decisionMakersSelection {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

button[type="submit"] {
  display: flex;
  width: 100%;
  height: 3.5em;
  justify-content: center;
  align-items: center;
  background-color: #fff2af;
  color: #041421;
  border: none;
  border-radius: 15px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s, transform 0.2s;
  font-family: "kalamehBold";
  animation: glowPulse 3s infinite ease-in-out;
}

button[type="submit"]:disabled {
  background-color: rgba(255, 242, 175, 0.5);
  cursor: not-allowed;
}

button[type="submit"],
.headerCTA {
  border: none;
}

.footerCopyright {
  text-align: center;
  font-family: "kalamehRegular";
  color: #ecdfcb;
  font-size: 0.7rem;
  margin: 3rem 0 1rem;
  direction: ltr;
}
.footerCopyright span {
  font-family: "kalamehBold";
}

button:hover {
  background-color: rgba(255, 242, 175, 0.6);
  transform: translateY(-0.4em);
}

::placeholder {
  font-family: "kalamehThin";
  color: #ecdfcb;
  font-size: 0.9rem;
  text-align: justify;
}

.headerCTA_BtnContainer {
  display: flex;
  justify-content: center;
  /* padding: 0 13.5rem; */
  width: 100%;
  gap: 4rem;
}

.headerCTA {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3.5em;
  margin: 2em 0 3em;
  background-color: rgba(255, 242, 175, 0.8);
  color: #041421;
  font-family: "kalamehBold";
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 242, 175, 0.4),
    0 0 40px rgba(255, 242, 175, 0.3);
  animation: glowPulse 4s infinite ease-in-out;
  transition: all 0.3s;
  text-wrap: nowrap;
  gap: 0.3rem;
  padding: 0 2em;
}

.heroSection {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 2rem 0 3rem;
  background-color: rgba(61, 62, 56, 0.5);
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4.83/1;
}

#heroSectionContent {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

#switchLangBtn {
  width: 7.5em;
}

#ourWorkBtn {
  width: 9.5em;
}

.headerCTA:active {
  transform: scale(0.9);
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 242, 175, 0.3),
      0 0 30px rgba(255, 242, 175, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 242, 175, 0.4),
      0 0 60px rgba(255, 242, 175, 0.2);
  }
}

.language-icon,
.work-icon {
  width: 2em;
  height: 2em;
  aspect-ratio: 1/1;
}

.submissionPrivacyPolicy_container {
  display: flex;
  width: 100%;
  margin-bottom: 2rem;
  gap: 0.7rem;
  align-items: center;
}

.submissionPrivacyPolicy {
  min-width: 1.5rem;
  min-height: 1.5rem;
  appearance: none;
  background-color: #3d3e38;
  border-radius: 6px;
  outline: none;
  transition: background-color, transform, outline 0.2s;
  cursor: pointer;
}

label[for="submissionPrivacyPolicy"] {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-family: "kalamehBold";
}

label[for="submissionPrivacyPolicy"] span {
  color: #fff2af;
}

/* Media Queries */
@media (min-width: 600px) {
  .heroSection {
    width: 80%;
    margin: 2rem auto 3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  .workStyleCategory label:not(#contactMethodLabel),
  .decisionMakersCategory label {
    font-size: 0.9rem;
  }

  .headerCTA {
    font-size: 0.9rem;
  }

  label[for="submissionPrivacyPolicy"] {
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  .workStyleCategory label:not(#contactMethodLabel),
  .decisionMakersCategory label {
    font-size: 0.8rem;
  }
  h1 {
    font-size: 1.1rem;
  }
  .headerCTA {
    font-size: 0.8rem;
  }
  .headerCTA_BtnContainer {
    gap: 2.2rem;
  }
}

@media (max-width: 400px) {
  h1 {
    text-wrap: wrap;
  }
}

@media (max-width: 350px) {
  .workStyleCategory label:not(#contactMethodLabel),
  .decisionMakersCategory label {
    font-size: 0.7rem;
  }

  .headerCTA {
    font-size: 0.7rem;
  }

  .headerCTA_BtnContainer {
    gap: 2rem;
  }
}

@media (max-width: 385px) {
  ::placeholder {
    font-size: 0.8rem;
  }
}

@media (max-width: 880px) {
  .container {
    padding: 0 2em;
  }
}

@media (max-width: 280px) {
  .headerCTA {
    font-size: 0.6rem;
  }
  .headerCTA_BtnContainer {
    gap: 1rem;
  }
}

/* Fix autofill bg coloring */
input:-webkit-autofill {
  background-color: #1e1e2e !important;
  color: #ecdfcb !important;
  box-shadow: 0 0 0px 1000px #1e1e2e inset !important;
}

input:-webkit-autofill::first-line {
  color: #ecdfcb !important;
}

/* For Firefox */
input:-moz-autofill {
  background-color: #1e1e2e !important;
}
