@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #f8faff;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.spacer {
  padding: 5rem 0;
}

/**************************
TOP SECTION
**************************/

.top {
  color: #d40004;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #021346;
  margin-bottom: 3rem;
  font-weight: 800;
}

/**************************
PROGRESS TRACKER
**************************/

.progress-tracker {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tracker-step {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #dbe4ff;
  background: white;
  color: #777;
  font-size: 0.85rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  transition: 0.35s ease;
}

.tracker-step span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eef3ff;
  color: #021346;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.8rem;
}

.tracker-step.active {
  background: #08279c;
  color: white;
  border-color: #08279c;
}

.tracker-step.active span {
  background: white;
  color: #08279c;
}

.tracker-step.completed {
  background: #ebf2ff;
  border-color: #08279c;
  color: #08279c;
}

/**************************
FORM CARD
**************************/

form {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/**************************
STEPS
**************************/

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-step h2 {
  margin-bottom: 2rem;
  color: #021346;
  font-size: 1.7rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**************************
OPTION CARDS
**************************/

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.option-card {
  padding: 1.5rem;
  border: 1px solid #dfe3ee;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #555;

  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: #08279c;
  transform: translateY(-3px);
}

.option-card.selected {
  background: #f1f5ff;
  border-color: #08279c;
  color: #08279c;
}

/**************************
FORM FIELDS
**************************/

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.field input,
.field select,
.field textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #dfe3ee;
  border-radius: 0.75rem;
  outline: none;

  transition: 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #08279c;
}

/**************************
BANK CARD
**************************/

.bank-card {
  background: #f5f8ff;
  border: 1px solid #d9e4ff;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.bank-card p {
  margin-bottom: 0.75rem;
  color: #555;
}

.bank-card p:last-child {
  margin-bottom: 0;
}

/**************************
SUCCESS PAGE
**************************/

.success-preview {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.checkmark {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;

  border-radius: 50%;

  background: linear-gradient(135deg, #08279c, #d40004);

  color: white;
  font-size: 2rem;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}

.success-preview h2 {
  margin-bottom: 1rem;
}

.success-preview p {
  color: #777;
  line-height: 1.8;
}

/**************************
BUTTONS
**************************/

.wizard-controls {
  margin-top: 3rem;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;

  transition: 0.3s ease;
}

.btn-primary {
  background: #08279c;
  color: white;
}

.btn-primary:hover {
  background: #1b42c6;
}

.btn-secondary {
  background: #eef3ff;
  color: #08279c;
}

.btn-secondary:hover {
  background: #dfe8ff;
}

/**************************
TOAST
**************************/

.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;

  min-width: 320px;

  background: white;
  border-left: 5px solid #08279c;

  padding: 1rem;

  border-radius: 1rem;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);

  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;

  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
/************************** UPLOAD COMPONENT **************************/
.upload-wrapper {
  margin-top: 1rem;
}
.upload-box {
  border: 2px dashed #d9e4ff;
  border-radius: 1rem;
  padding: 2rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.upload-box:hover {
  border-color: #08279c;
  background: #f5f8ff;
}
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.upload-text {
  font-size: 1rem;
  font-weight: 700;
  color: #021346;
}
.upload-subtext {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #777;
}
#filePreview {
  margin-top: 1rem;
}
.file-preview {
  background: #f5f8ff;
  border: 1px solid #d9e4ff;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}
.file-meta {
  display: flex;
  flex-direction: column;
}
.file-name {
  font-weight: 700;
  color: #021346;
  word-break: break-word;
}
.file-size {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
}
.remove-file {
  border: none;
  background: #ffe8e8;
  color: #d40004;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.remove-file:hover {
  background: #ffd4d4;
}
.preview-card {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 1rem;
  padding: 1rem;
}
.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.preview-body {
  flex: 1;
}
.preview-name {
  font-weight: 700;
  color: #021346;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.preview-size {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.preview-actions {
  display: flex;
  gap: 0.75rem;
}
.preview-btn {
  border: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
.preview-btn.replace {
  background: #eef3ff;
  color: #08279c;
}
.preview-btn.remove {
  background: #ffe8e8;
  color: #d40004;
}
/************************** TOAST IMPROVEMENT **************************/
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  min-width: 320px;
  max-width: 420px;
  background: white;
  border-left: 5px solid #08279c;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  z-index: 9999;
  font-weight: 600;
  color: #333;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
} /************************** LOADING STATE **************************/
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/*****************payment************************************/

/* ==========================
   SUMMARY STEP
========================== */

.summary-card {
  background: #fff;

  border: 1px solid #e8edf7;

  border-radius: 1rem;

  padding: 2rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 1rem;
}

.summary-row span {
  color: #666;
}

.summary-row strong {
  color: #08279c;

  font-weight: 700;
}

.summary-card hr {
  border: none;

  border-top: 1px solid #e8edf7;

  margin: 0.5rem 0;
}

.summary-row.total {
  font-size: 1.2rem;

  padding-top: 1rem;
}

.summary-row.total strong {
  color: #d40004;

  font-size: 1.4rem;
}

/* ==========================
   COUPON
========================== */

.coupon-box {
  display: flex;

  gap: 1rem;

  margin-top: 1rem;
}

.coupon-box input {
  flex: 1;

  padding: 1rem;

  border: 1px solid #d9d9d9;

  border-radius: 0.75rem;

  outline: none;
}

.coupon-box button {
  border: none;

  background: #08279c;

  color: #fff;

  padding: 1rem 1.5rem;

  border-radius: 0.75rem;

  cursor: pointer;

  transition: 0.3s;
}

.coupon-box button:hover {
  opacity: 0.9;
}

/* ==========================
   PAYMENT AMOUNT
========================== */

.amount-box {
  margin: 1.5rem 0;

  padding: 1.25rem;

  background: #f5f8ff;

  border-left: 4px solid #08279c;

  border-radius: 0.75rem;

  font-size: 1.1rem;
}

.amount-box strong {
  color: #d40004;

  font-size: 1.4rem;
}

/* ==========================
   PREMIUM MESSAGE
========================== */

.premium-message {
  background: #f8fbff;

  border: 1px solid #dce8ff;

  border-radius: 1rem;

  padding: 2rem;

  line-height: 1.8;
}

.premium-message p {
  margin-bottom: 1rem;
}

.premium-message ul {
  margin-top: 1rem;

  padding-left: 1.5rem;
}

.premium-message li {
  margin-bottom: 0.75rem;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
  .summary-row {
    flex-direction: column;

    align-items: flex-start;
  }

  .coupon-box {
    flex-direction: column;
  }

  .coupon-box button {
    width: 100%;
  }
}
/************************** MOBILE **************************/
@media (max-width: 768px) {
  .upload-box {
    padding: 1.5rem;
  }
  .file-preview {
    flex-direction: column;
    align-items: flex-start;
  }
  .remove-file {
    width: 100%;
  }
  .toast {
    left: 1rem;
    right: 1rem;
    min-width: unset;
    max-width: unset;
  }
}

/**************************
RESPONSIVE
**************************/

@media (max-width: 768px) {
  form {
    padding: 1.5rem;
  }

  .progress-tracker {
    flex-direction: column;
  }

  .wizard-controls {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .toast {
    width: calc(100% - 2rem);
    right: 1rem;
    min-width: unset;
  }
}
