/* ==========================================================
   GLOBAL RESET
   ========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================
   NAVBAR STYLING
   ========================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background: linear-gradient(135deg, #000a19, #00132e);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo img {
  height: 48px;
}

.center-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-nav a {
  position: relative;
  margin: 0 18px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.center-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4EE5C5;
  transition: width 0.3s ease;
}

.center-nav a:hover::after,
.center-nav a.active::after {
  width: 100%;
}

.center-nav a:hover,
.center-nav a.active {
  color: #4EE5C5;
}

.right-nav a {
  color: #4EE5C5;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.right-nav a:hover {
  color: #3ABAF8;
}
.right-nav .slash {
    font-weight: 600;
    background: linear-gradient(135deg, #4c6ef5, #3abaf8, #4ee5c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 4px;
}


@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  .center-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .center-nav a {
    margin: 5px 10px;
  }
}

/* ==========================================================
   PAGE LAYOUT
   ========================================================== */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #071a45, #0c2a67);
  padding: 0;
}

.page-wrapper {
  width: 100%;
  min-height: 90vh; /* ensures full page fill */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
}

/* --- Responsive Page Wrapper --- */
@media (max-width: 992px) {
  .page-wrapper {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 50px 15px;
  }
}

/* ==========================================================
   FORM CONTAINER (Default / Desktop View)
   ========================================================== */
.form-container {
  background: #fff;
  padding: 50px 40px;
  border-radius: 15px;
  width: 100%;
  max-width: 700px; 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.6s ease;
}

.form-container h2 {
  margin-bottom: 25px;
  text-align: center;
  color: #333;
  font-size: 30px;
}

.form-container input,
.form-container select,
.form-container button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  outline: none;
}

.form-container input:focus,
.form-container select:focus {
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.4);
}

.form-container button {
  background: linear-gradient(135deg, #4c6ef5, #3abaf8, #4ee5c5);
  color: #fff;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.form-container button:hover {
  background: linear-gradient(135deg, #4ee5c5, #3abaf8, #4c6ef5);
}

.extra-link {
  font-size: 15px;
  margin-top: 20px;
  text-align: center;
}

.extra-link a {
  color: #4c6ef5;
  text-decoration: none;
  font-weight: bold;
}

.extra-link a:hover {
  text-decoration: underline;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE STYLING
   ========================================================== */

/* --- Tablets (≤992px) --- */
@media (max-width: 992px) {
  .form-container {
    max-width: 92%;
    min-height: 50vh;
    padding: 45px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 150px;
  }

  .form-container h2 {
    font-size: 38px;
    margin-bottom: 30px;
    color: #222;
  }

  .form-container input,
  .form-container select,
  .form-container button {
    width: 100%;
    padding: 20px 22px;
    margin: 25px 0;
    font-size: 20px; 
    border-radius: 10px;
    line-height: 1.5;
  }

  .form-container input::placeholder {
    font-size: 19px;
    color: #777;
    opacity: 1;
  }

  .form-container button {
    font-size: 22px;
    padding: 20px;
    font-weight: 600;
  }

  .extra-link {
    font-size: 20px;
    margin-top: 25px;
    text-align: center;
  }

  .extra-link a {
    font-size: 20px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
  }

  .extra-link a:hover {
    color: #0056b3;
    text-decoration: underline;
  }
}

/* --- Small Phones (≤480px) --- */
@media (max-width: 480px) {
  .form-container {
    padding: 35px 20px;
    border-radius: 12px;
  }

  .form-container h2 {
    font-size: 28px;
  }

  .form-container input,
  .form-container select,
  .form-container button {
    padding: 16px 18px;
    font-size: 17px;
  }

  .extra-link,
  .extra-link a {
    font-size: 17px;
  }
}


/* ==========================================================
   MESSAGE STYLES (Success & Error)
   ========================================================== */
.success-msg {
  text-align: center;
  margin-top: 15px;
  color: green;
  font-weight: bold;
}

.error-msg {
  text-align: center;
  margin-top: 10px;
  color: #e63946;
  font-weight: bold;
}

/* ==========================================================
   EXTRA LINKS
   ========================================================== */
.extra-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.extra-link a {
  color: #4c6ef5;
  font-weight: bold;
  text-decoration: none;
}

.extra-link a:hover {
  text-decoration: underline;
}

/* ==========================================================
   MISC FORM ELEMENTS
   ========================================================== */
.desc-box {
  min-height: 150px;
  resize: vertical;
}

.desc-box-wide {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  padding: 12px;
}

.deadline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.deadline-row label {
  font-weight: bold;
  color: #444;
  white-space: nowrap;
}

.deadline-row input[type="date"] {
  flex: 1;
  padding: 10px;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
