/* ===== RESET ===== */

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

body {
  font-family: "Inter", sans-serif;

  background: #f3f5f9;

  color: #0a2342;
}

.container {
  max-width: 900px;

  margin: auto;

  padding: 0 20px;
}

/* ===== HEADER ===== */

.page-header {
  background: #4b38f5;

  color: white;

  padding: 18px 0;
}

.page-header .container {
  display: flex;

  align-items: center;

  gap: 20px;
}

.back-btn {
  color: white;

  text-decoration: none;

  font-weight: 600;
}

/* ===== MAIN ===== */

.wire-form-page {
  padding: 50px 0;
}

.wire-form-page h1 {
  margin-bottom: 10px;
}

.subtitle {
  color: #666;

  margin-bottom: 35px;
}

/* ===== FORM ===== */

.wire-form {
  background: white;

  padding: 35px;

  border-radius: 18px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

/* Fields */

.form-group {
  display: flex;

  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;

  margin-bottom: 6px;

  font-weight: 600;
}

input,
select,
textarea {
  padding: 11px 14px;

  border-radius: 10px;

  border: 1px solid #ccc;

  font-size: 0.9rem;

  outline: none;

  transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4b38f5;

  box-shadow: 0 0 0 2px rgba(75, 56, 245, 0.15);
}

/* Hide Fields */

.hidden {
  display: none;
}

/* Readonly Input */

input[readonly] {
  background: #f1f3f8;

  color: #555;

  cursor: not-allowed;
}

/* Button */

.submit-btn {
  grid-column: 1 / -1;

  padding: 14px;

  border: none;

  border-radius: 25px;

  background: #4b38f5;

  color: white;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.submit-btn:hover {
  background: #3726cc;
}

/* Mobile */

@media (max-width: 700px) {
  .wire-form {
    grid-template-columns: 1fr;
  }
}

/* Beneficiary Message */

.beneficiary-msg {
  margin-top: 5px;

  font-size: 0.8rem;

  color: #d9534f;

  display: none;
}

/* Manual Entry Mode */

.manual-input {
  background: #fff !important;

  border-color: #4b38f5 !important;

  cursor: text !important;
}

/* Remove Number Arrows */

.amount-input::-webkit-inner-spin-button,
.amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* ================= LOADING ================= */

.loading-screen {
  position: fixed;

  inset: 0;

  background: rgba(255, 255, 255, 0.9);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 9999;
}

.loader-box {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;

  border: 5px solid #ddd;

  border-top: 5px solid #4b38f5;

  border-radius: 50%;

  animation: spin 1s linear infinite;

  margin: auto;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= OTP ================= */

.otp-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 10000;
}

.otp-box {
  background: white;

  padding: 35px;

  border-radius: 16px;

  width: 100%;
  max-width: 380px;

  text-align: center;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.otp-box h3 {
  margin-bottom: 10px;
}

.otp-box p {
  font-size: 0.9rem;

  color: #555;

  margin-bottom: 20px;
}

.otp-box input {
  width: 100%;

  padding: 12px;

  font-size: 1.1rem;

  text-align: center;

  letter-spacing: 4px;

  border-radius: 10px;

  border: 1px solid #ccc;

  margin-bottom: 18px;
}

.otp-box button {
  width: 100%;

  padding: 12px;

  background: #4b38f5;

  color: white;

  border: none;

  border-radius: 25px;

  font-weight: 600;

  cursor: pointer;
}

.otp-box button:hover {
  background: #3726cc;
}

/* ================= RECEIPT ================= */

.receipt-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 11000;
}

.receipt-box {
  background: white;

  padding: 35px;

  border-radius: 18px;

  width: 100%;
  max-width: 420px;

  text-align: center;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.receipt-box h2 {
  color: #2d7d46;

  margin-bottom: 10px;
}

.receipt-check {
  font-size: 2.5rem;

  color: #2d7d46;

  margin-bottom: 10px;
}

.receipt-main {
  font-size: 0.95rem;

  color: #333;

  margin-bottom: 25px;

  line-height: 1.5;
}

/* Details */

.receipt-details {
  border-top: 1px solid #ddd;

  padding-top: 20px;

  margin-bottom: 25px;

  text-align: left;
}

.receipt-details div {
  display: flex;

  justify-content: space-between;

  margin-bottom: 10px;

  font-size: 0.9rem;
}

.receipt-details span {
  color: #666;
}

.success {
  color: #2d7d46;
}

/* Button */

.receipt-btn {
  width: 100%;

  padding: 12px;

  border: none;

  border-radius: 25px;

  background: #4b38f5;

  color: white;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.receipt-btn:hover {
  background: #3726cc;
}

/* ========== RECEIPT MODAL ========== */

.receipt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Card */

.receipt-card {
  background: #fff;
  width: 95%;
  max-width: 500px;

  border-radius: 16px;
  padding: 25px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

  animation: popUp 0.4s ease;
}

/* Header */

.receipt-header {
  text-align: center;
  margin-bottom: 25px;
}

.receipt-logo {
  width: 60px;
  margin-bottom: 10px;
}

.success-icon {
  width: 60px;
  height: 60px;

  background: #28a745;
  color: white;

  font-size: 28px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 10px auto;
}

.receipt-header h2 {
  margin: 10px 0;
  color: #021633;
}

.receipt-note {
  font-size: 0.85rem;
  color: #555;
}

/* Details */

.receipt-details h3 {
  margin: 20px 0 10px;
  color: #021633;
}

.detail-row {
  display: flex;
  justify-content: space-between;

  padding: 8px 0;
  border-bottom: 1px solid #eee;

  font-size: 0.9rem;
}

.detail-row span:last-child {
  font-weight: 600;
}

/* Buttons */

.receipt-actions {
  display: flex;
  gap: 15px;

  margin-top: 25px;
}

.share-btn,
.done-btn {
  flex: 1;

  padding: 12px;

  border: none;
  border-radius: 8px;

  cursor: pointer;
  font-weight: 600;
}

.share-btn {
  background: #f1f1f1;
  color: #021633;
}

.done-btn {
  background: #021633;
  color: white;
}

.share-btn:hover {
  background: #ddd;
}

.done-btn:hover {
  background: #000c22;
}

/* Animation */

@keyframes popUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* International Fee Highlight */

.receipt-details h3 {
  margin-top: 20px;
}
