@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap);
*,
:after,
:before {
  margin: 0;
  padding: 0;
  font-size: 70%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* === Root Variables === */
:root {
  --primary-bg: #eef1f8;
  --input-bg: #f1f3fa;
  --text-color: #2c3e50;
  --icon-color: #444;
  --shadow: 2px 6px 18px rgba(66, 57, 238, 0.3);
  --highlight: #a24f3d;
  --button-bg: #4c7a89;
}

body {
  text-size-adjust: 100%;
  font-family: "Noto Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  background-color: var(--light-bg);
  line-height: 1.6;
  color: var(--text);
}

/* === Container === */
.form-container {
  max-width: 600px;
  margin: auto;
  padding: 1rem;
  text-align: center;
}

.form-container h2 {
  margin-top: 7rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

/* === Input Groups === */
.form-group {
  background-color: var(--input-bg);
  box-shadow: var(--shadow);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.2rem;
  transition: 0.3s ease;
}

.form-group:focus-within {
  outline: 1px solid var(--highlight);
  box-shadow: 0 0 10px rgba(162, 79, 61, 0.2);
}

/* === Icon inside input group === */
.form-group i {
  color: var(--icon-color);
  font-size: 2.2rem;
  margin-right: 0.8rem;
}

/* === Input / Select === */
.form-group input,
.form-group select {
  border: none;
  outline: none;
  font-size: 1.4rem;
  padding: 0.6rem;
  background: transparent;
  width: 100%;
  font-family: inherit;
  color: var(--text-color);
}

/* === Button === */
.custom-btn {
  max-width: 220px; /* Limit the width */
  width: 100%; /* Still responsive */
  margin: 2rem auto 0; /* Centered with top spacing */
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--button-bg, #4c7a89); /* fallback color */
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.15));
  transition: background 0.3s ease;
}

.custom-btn:hover {
  background: #3c6a73;
}

/* === Password toggle icon === */
.password-toggle {
  cursor: pointer;
  font-size: 1.3rem;
  margin-left: 0.5rem;
  color: var(--icon-color);
}

/* === Validation Message === */
.validation-error {
  font-size: 1.2rem;
  color: red;
  margin-top: -0.8rem;
  margin-bottom: 0.8rem;
  text-align: left;
  padding-left: 2rem;
}

/* === Media Queries === */

/* Tablets */
@media (max-width: 768px) {
  .form-container h2 {
    font-size: 1.8rem;
  }

  .form-group {
    padding: 0.5rem 1rem;
  }

  .form-group i {
    font-size: 2rem;
  }

  .form-group input,
  .form-group select {
    font-size: 1.4rem;
  }

  .custom-btn {
    font-size: 1.3rem;
    padding: 0.8rem 1.3rem;
  }
}
/* === Checkbox Styling === */
.form-checkbox {
  text-align: left;
  margin: 0rem 0rem 0rem 2rem;
  font-size: 1.9rem;
  color: var(--text-color);
}

.form-checkbox input {
  margin-right: 0.5rem;
}

/* === Footer Links === */
.form-footer {
  margin: 2rem;
  font-size: 1.9rem;
  text-align: center;
}

.form-footer a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: bold;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Mobile Phones */
@media (max-width: 480px) {
  .form-container {
    padding: 1.4rem;
  }

  .form-group {
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
  }

  .form-group i {
    font-size: 2rem;
  }

  .form-group input,
  .form-group select {
    font-size: 1.4rem;
  }

  .custom-btn {
    font-size: 1.7rem;
    padding: 0.7rem 1.2rem;
  }

  .validation-error {
    font-size: 1.1rem;
  }
}
/* Modal styling */
/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* ===== Modal Box ===== */
.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

/* ===== Modal Header ===== */
.modal-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  background-color: #eef1f8;
  z-index: 10;
}

.modal-header input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  border: 1px solid #ccc;
  box-shadow: 2px 6px 18px rgba(66, 57, 238, 0.3);
  border-radius: 8px;
  outline: none;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #444;
  margin-left: 1rem;
  cursor: pointer;
}

/* ===== Modal Results (Suggestions) ===== */
#modalResults {
  padding: 0.5rem 1rem 1rem;
  max-height: 50vh;
  overflow-y: auto;
}

/* ===== Suggestion Item ===== */
.suggestion-item {
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  border-bottom: 1px solid #222222;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
}

.suggestion-item:hover {
  background-color: #f1f5f9;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.pdf-modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  max-width: 90%;
  width: 600px;
  height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pdf-modal iframe {
  flex: 1;
  width: 100%;
  height: 100vh;
  border: none;
  border-radius: 4px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 4rem;
  color: #4c7a89;
  cursor: pointer;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 500px) {
  .modal-box {
    max-width: 95%;
    padding: 0;
  }

  .modal-header input {
    font-size: 1.2rem;
  }

  .suggestion-item {
    font-size: 1.3rem;
  }
}
