* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f3c88, #0b1c44);
  font-family: "Inter", system-ui, sans-serif;
  color: #fff;
}

.body-flex{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glass card */
.card {
  width: 700px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 30px 40px;
  animation: cardAnimation 0.8s ease-in;
}

/* HEADER FOR INDEX */
.header-index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.header-index img {
  width: 40%;
  filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.5));
}

.header-index span {
  font-size: 14px;
  opacity: 0.8;
}

/* HEADER FOR REMAINING PAGES */
.header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 18px;
}

.header img {
  height: 70px;
  filter: drop-shadow(0px 0px 0px white);
}

.header h1 {
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: 1px;
}

/* Subtitle Index*/
.subtitle-index {
  margin: 18px 0 30px;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 600;
  filter: drop-shadow(2px 3px 4px rgb(34, 34, 34));
}
/* Subtitle Remaining*/
.subtitle {
  text-align: center;
  margin: 22px 0;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 600;
}

/* Floating inputs */
.field {
  position: relative;
  margin-bottom: 24px;
}

.field input {
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-transform: uppercase;
}

.field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  opacity: 0.7;
  transition: 0.3s;
}

.field input:focus,
.field input:valid {
  outline: none;
  border-bottom-color: #7aa2ff;
}

.field input:focus + label,
.field input:valid + label {
  top: -8px;
  font-size: 13px;
  color: #7aa2ff;
}

/* Button */
.btn-index {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7aa2ff, #3f66ff);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-index:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(122, 162, 255, 0.5);
}

/* Info grid */
.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 15px;
  color: #660808;
}

.box {
  padding: 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 65%);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.box span{
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.2));
}

.alert {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 90, 90, 0.2);
  text-align: center;
  font-weight: 600;
}

.lastDate {
  border-bottom: 2px solid #cbcbcb;
  text-align: center;
}
.lastDate h3 {
  margin-bottom: 5px;
  color: #cbcbcb;
  letter-spacing: 1px;
}

.lastDate h4 {
  margin-bottom: 5px;
  color: white;
  letter-spacing: 1px;
}

/* REG STYLES */
.instructions {
  margin-top: 20px;
}

.instructions li {
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 15px;
}

.highlight {
  color: #ffb84d;
  font-weight: 600;
}

.actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.payVerifyForm label {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}
.payVerifyForm input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-bottom: 25px;
}
.payVerifyForm .actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #7aa2ff, #3f66ff);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(122, 162, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* PAYMENT VERIFY DESIGN */
.status-msg {
  text-align: center;
  margin-top: 25px;
}
.status-msg h3 {
  font-weight: 500;
}
.footer-note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* ONLINE PAGE DESIGNS */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;;
}

.grid-field {
  display: flex;
  flex-direction: column;
}

.grid-field label {
  font-size: 13px;
  color: #c1c1c1;
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 1px;
}

.grid-field input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f9fafb;
  font-size: 14px;
  color: #222;
  outline: none;
  font-weight: 600;
}

.grid-field input:read-only {
  cursor: default;
}

.alert-online {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(255, 90, 90, 0.25),
    rgba(255, 150, 150, 0.15)
  );

  border-left: 5px solid #ff6b6b;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffecec;

  box-shadow: inset 0 0 20px rgba(255, 90, 90, 0.25);
}

/* ===== SELECTED COURSES PAGE ===== */

/* .course-list {
  margin-top: 25px;
}

.course-row {
  display: flex;
  gap: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
  font-size: 15px;
  align-items: center;
}

.course-row span:first-child {
  min-width: 80px;
  font-weight: 600;
  color: #ffb84d;
} */

/* ===== COMPACT COURSE LIST ===== */

.course-box {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.course-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  padding: 3px 0;
}

.course-item:not(:last-child) {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.course-no {
  min-width: 70px;
  font-weight: 600;
  color: #ffb84d;
}

.course-name {
  opacity: 0.95;
}

/* ===== COMPACT FEE DISPLAY ===== */

.fee-box {
  margin: 18px 0 6px;
  padding: 10px 14px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fee-box span {
  font-size: 15px;
  font-weight: 600;
}

.fee-box .amount {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.confirm-glass {
  margin-top: 25px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.6;
}

.confirm-glass input {
  margin-right: 10px;
  transform: scale(1.2);
}

.actions.split {
  justify-content: space-between;
}

/* ===== DISABLED SAVE BUTTON DESIGN ===== */

.btn:disabled,
.btn[disabled] {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: grayscale(40%);
}

/* prevent hover effects when disabled */
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@keyframes cardAnimation {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

input[type="date"] {
  color: transparent;
}

input[type="date"]:focus,
input[type="date"]:valid {
  color: rgb(255, 255, 255);
}
