/* Reset and Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Ping", sans-serif;
  overflow-y: hidden;
  direction: rtl;
  background-color: var(--ui-bg);
}

/* Variables */
:root {
  --color-primary: #3c9745;
  --color-background: #f4f4f4;
  --ui-bg: #f4f4f4;
}

/* Fonts */
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Regular.woff2") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Medium.woff2") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Bold.woff2") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Heavy.woff2") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.font-ping,
.font-ar {
  font-family: "Ping", sans-serif;
}

/* Elements */
button {
  cursor: pointer;
  border-radius: 4px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.navbar {
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (min-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}
@media (min-width: 1024px) {
  .navbar {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
@media (min-width: 1280px) {
  .navbar {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  display: block;
}
.logo-img-icon {
  width: 40px;
  height: auto;
}
.logo-img-text {
  width: 100px;
  height: auto;
  margin-inline-start: 0.5rem;
}

/* Navigation Links */
.nav-links {
  display: none;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}
.nav-link {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  background-image: url("govLandScape.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  gap: 0;
}
.hero-content {
  text-align: center;
  padding: 1rem 1.5rem;
  max-width: 800px;
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-radius: 1rem;
}
.hero-title {
  font-weight: 800;
  line-height: 1.2;
  color: #171717;
  font-size: clamp(28px, 5vw, 64px);
  width: 100%;
}
.hero-description {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  font-size: clamp(12px, 2vw, 18px);
  line-height: 1.4;
  max-height: 88px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  max-width: 100%;
}

/* Forms */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.form-container {
  flex-direction: row;
  justify-content: center;
}

.flex-form-container {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .flex-form-container {
    flex-direction: row;
    gap: 2.3rem;
  }
}

.urgent-announcement {
  font-size: 10px;
  font-weight: 800;
  background: var(--color-primary);
  color: #fff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  border-radius: 9999px;
}

@media (min-width: 768px) {
  .urgent-announcement {
    font-size: 18px;
  }
}

/* Select Styles */
.select-container,
.select-wrapper {
  position: relative;
  display: flex;
  gap: 0.1rem;
  align-items: center;
  width: 100%;
  max-width: 200px;
}

.select-container,
.select-wrapper {
  width: 180px;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 300px;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px;
  padding-right: 32px;
  padding-left: 32px;
  font-family: "Ping", sans-serif;
  font-size: 16px;
  direction: rtl;
  width: fit-content;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.custom-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  font-size: 20px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  pointer-events: none;
  color: #555;
  transition: 0.2s ease-in-out;
}

.custom-select:focus + .custom-icon {
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  top: 50%;
  left: 8px;
}

.custom-select {
  font-size: 16px;
}
.custom-select:focus {
  border-color: var(--color-primary);
}

/* main.css */
.select-arrow {
  position: absolute;
  left: 0;
  rotate: 90deg;
  font-size: 24px;
  width: fit-content;
  height: fit-content;
}

/* Buttons */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  height: 36px;
  width: 100%;
}
.btn-primary {
  width: 168px;
}
@media (min-width: 768px) {
  .btn-primary {
    width: 180px;
    height: 56px;
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .btn-primary {
    width: 228px;
  }
}
.btn-primary:disabled {
  background: var(--color-primary);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status message */
.status-msg {
  font-size: 14px;
  color: #4c4c4c;
}

#statusMsg {
  font-weight: 800;
  font-size: 24px;
  color: red;
}

/* Mobile Download CTA */
.mobile-download {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.mobile-download a {
  text-decoration: none;
  width: 100%;
  max-width: 250px;
}

.mobile-download-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 0.75rem;
  background: white;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
