@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --primary: #4c4d9f;      /* navbar purple */
  --primary-light: #6e6fc9;
  --accent-yellow: #f8ca2a;
  --accent-yellow-soft: #a1acda;
  --card1: #f6f6ff;
  --card2: #dfdefa;        /* sidebar lavender */
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #dfdefa 100%);
  color: #1a1a34;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.register-section {
  display: grid;
  grid-template-columns: 3fr 1fr;
  width: 95%;
  max-width: 1200px;
  margin: 120px auto 60px;
  align-items: start;
}

.form-card,
.left-card {
  background: linear-gradient(135deg, var(--card1), var(--card2));
  border-left: 6px solid var(--accent-yellow);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
}

.form-card h2,
.left-card h2 {
  color: var(--primary);
}

.subtext {
  color: #444;
  margin-bottom: 20px;
}

.left-card {
  height: fit-content;
}

.left-card ul {
  padding-left: 20px;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #2b2b47;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #b8b8d9;
  background: #fff;
  font-family: inherit;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,77,159,0.25);
  outline: none;
}

.lrn-boxes {
  display: flex;
  gap: 8px;
}

.lrn-input {
  width: 40px;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #b8b8d9;
  background: #fff;
  font-weight: 600;
}

.actions {
  margin-top: 20px;
  text-align: right;
}

button {
  background: var(--accent-yellow);
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  color: #1a1a34;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease;
}

button:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .register-section {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.radio-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 6px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  color: #2b2b47;
}

.radio-row input[type="radio"] {
  margin: 0;
  accent-color: var(--primary);
  transform: scale(1.2);
}

.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.success-modal {
  background: #ffffff;
  padding: 30px 26px;
  border-radius: 16px;
  max-width: 380px;
  width: 95%;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  animation: popupFade 0.25s ease;
}

@keyframes popupFade {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-modal h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 10px;
}

.success-modal p {
  color: #333;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.yes-btn, .no-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.yes-btn {
  background: var(--accent-yellow);
  color: #1a1a34;
}

.yes-btn:hover {
  background: var(--primary-light);
  color: #fff;
}

.no-btn {
  background: #ddd;
  color: #333;
}

.no-btn:hover {
  background: #c7c7c7;
}

@media (max-width: 600px) {
  .lrn-boxes {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lrn-input {
    width: 28px;
    margin-bottom: 6px;
  }
}
