/* =========================================================
   findmydegree.lk — main stylesheet
   Ported from legacy/php/css/style.css
   ========================================================= */

/* Google Fonts loaded via template <link> tag */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Layout ---- */

#container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
}

/* ---- Header ---- */

.header {
  background-color: #0d0d0d;
  padding: 18px 20px;
  display: flex;
  align-items: center;
}

.header .logo img {
  height: 48px;
}

.header .logo a {
  text-decoration: none;
}

/* ---- Hero / main section ---- */

.main {
  padding: 32px 0 20px;
  text-align: center;
}

.main .image img {
  max-width: 220px;
  margin-bottom: 16px;
}

.main .slogan h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.main .slogan h1.hilite {
  color: #2ECD73;
}

.main .description {
  margin-top: 12px;
  padding: 0 10%;
}

.main .description h4 {
  font-size: 0.9rem;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.6;
}

/* ---- Notice banner ---- */

.notice {
  margin: 12px 0;
  padding: 10px 16px;
  background-color: rgba(31, 173, 24, 0.3);
  color: #ffffff;
  border: 2px solid #156915;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Section + Window ---- */

.section {
  margin-top: 24px;
  padding-bottom: 32px;
}

.window {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.windowTitle {
  text-align: center;
  margin-bottom: 24px;
}

.windowTitle h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2ECD73;
  text-transform: uppercase;
}

/* ---- Forms ---- */

.form-group {
  margin-bottom: 16px;
  text-align: center;
}

.form-group h4 {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 6px;
}

select.old-select, select.subject-select, select.grade-select {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  min-width: 180px;
  cursor: pointer;
}

select.old-select:focus, select.subject-select:focus, select.grade-select:focus {
  outline: none;
  border-color: #2ECD73;
}

select option {
  background-color: #1a1a1a;
}

.subjects-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.subject-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.subject-row label {
  font-size: 0.8rem;
  color: #aaaaaa;
  width: 60px;
  text-align: right;
}

/* ---- Radio buttons ---- */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 360px;
  margin: 12px auto;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #cccccc;
}

.radio-group input[type="radio"] {
  accent-color: #2ECD73;
  width: 16px;
  height: 16px;
}

/* ---- Z-score input ---- */

input.zscore {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  width: 160px;
  text-align: center;
}

input.zscore:focus {
  outline: none;
  border-color: #2ECD73;
}

input.zscore:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---- Submit button ---- */

#gooey-button, .btn-next {
  background-color: #2ECD73;
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s ease;
  letter-spacing: 0.5px;
}

#gooey-button:hover, .btn-next:hover {
  background-color: #3aba5c;
}

/* ---- Errors ---- */

.error-list {
  background-color: rgba(200, 40, 40, 0.2);
  border: 1px solid #c82828;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  list-style: none;
  text-align: center;
}

.error-list li {
  font-size: 0.85rem;
  color: #ff8080;
  margin-bottom: 4px;
}

/* ---- Progress indicator ---- */

.progress {
  text-align: center;
  margin-top: 16px;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

.progress-step.active {
  border-color: #2ECD73;
  color: #2ECD73;
  background-color: rgba(46, 205, 115, 0.1);
}

.progress-step.done {
  border-color: #2ECD73;
  background-color: #2ECD73;
  color: #0d0d0d;
}

.progress-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background-color: #3a3a3a;
}

.progress-line.done {
  background-color: #2ECD73;
}

/* ---- Footer ---- */

.footer {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: #666666;
  border-top: 1px solid #1a1a1a;
}

.footer a {
  color: #2ECD73;
  text-decoration: none;
}

/* ---- About page ---- */

.about-content {
  line-height: 1.8;
}

.about-content h2 {
  color: #2ECD73;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.about-content p {
  color: #cccccc;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .main .slogan h1 {
    font-size: 1.3rem;
  }

  .window {
    padding: 18px 14px;
  }

  .subject-row {
    flex-direction: column;
    gap: 6px;
  }

  .subject-row label {
    text-align: center;
    width: auto;
  }
}

/* ---- Centered selection window ---- */
.window.window-centered {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Description (now placed below the selection card) ---- */
.section > .description {
  margin: 18px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 0 10%;
}
.section > .description h4 {
  font-size: 0.9rem;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.6;
}

/* ---- Toast (top-right, dismissible) ---- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  padding: 12px 14px 12px 16px;
  background-color: rgba(31, 173, 24, 0.95);
  color: #ffffff;
  border: 1px solid #156915;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.25s ease-out;
}
.toast .toast-msg {
  flex: 1;
  line-height: 1.4;
}
.toast .toast-close {
  flex-shrink: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.85;
}
.toast .toast-close:hover {
  opacity: 1;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 600px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
