/* C:\Users\LENOVO\Desktop\FLOYNEX_APP\frontend\css\floyrequest-money.css */

.floyrequest-money-container {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px !important;
  background: #f4f7fa;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  overflow-y: auto !important;
  max-width: 540px;
  margin: 0 auto;
}

/* Header Section */
.sendmoney-header-section {
  margin-bottom: 22px;
}
.header-top-row {
  margin-bottom: 22px;
}
.back-link {
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Fixed alignment header layout */
.header-main-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.send-main-icon {
  width: 52px;
  height: 52px;
  background: #00b050;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 176, 80, 0.2);
  padding: 11px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.mpesa-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
}

.header-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-text-block h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px 0;
}

.header-text-block p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

/* Right Illustration Graphic */
.header-illustration {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
}

.header-mpesa-graphic-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.graphic-badge {
  font-size: 10px;
  font-weight: 800;
  background: #00b050;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Stepper Bar */
.stepper-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
}
.stepper-line {
  position: absolute;
  top: 15px;
  left: 38px;
  right: 38px;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}
.stepper-line-fill {
  height: 100%;
  background: #00b050;
}
.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}
.step-item.active .step-circle {
  background: #00b050;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.15);
}
.step-item.active .step-label {
  color: #00b050;
  font-weight: 700;
}

/* Form Card Container */
.form-card-container {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  margin-top: 20px;
}

/* Input Groups */
.input-group {
  margin-bottom: 22px;
}
.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 9px;
}
.input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}
.input-field-wrap:focus-within {
  border-color: #00b050;
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.1);
}

/* Left prefix box with vertical separator line */
.input-prefix-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 100%;
  color: #6b7280;
  font-size: 17px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.input-prefix-badge.text-badge {
  width: 62px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.3px;
}

.input-field-wrap input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 24px;
  color: #111827;
  font-weight: 600;
  padding: 0 15px;
}

/* =========================================
   FLOYNEX RECEIVER ACCOUNT + QR SCAN FIELD
   ========================================= */

/* Receiver field layout */
.receiver-scan-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Manual account number input */
.receiver-scan-wrap input {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    font-size: 22px;
}

/* QR Scan button */
.receiver-scan-btn {
    flex: 0 0 105px;
    width: 105px;
    height: 40px;
    margin: 0 5px 0 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: #edf5ff;
    color: #0756b3;

    border: none;
    border-left: 1px solid #d1d5db;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    transition: background 0.2s ease;
}

/* QR icon */
.receiver-scan-btn i {
    font-size: 18px;
}

/* Hover */
.receiver-scan-btn:hover {
    background: #dceaff;
}

/* Tap feedback */
.receiver-scan-btn:active {
    transform: scale(0.97);
}

/* Small screens */
@media (max-width: 380px) {

    .receiver-scan-btn {
        flex-basis: 88px;
        width: 88px;
        gap: 5px;
        font-size: 12px;
    }

    .receiver-scan-btn i {
        font-size: 16px;
    }

    .receiver-scan-wrap input {
        font-size: 17px;
        padding: 0 8px;
    }
}

.input-field-wrap input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.input-helper {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 7px;
}
.amount-limits-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 7px;
}
.prefix-img-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Primary Button */
.btn-primary-green {
  width: 100%;
  background: #00b050;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  height: 54px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(0, 176, 80, 0.25);
  transition: background 0.2s ease;
}
.btn-primary-green:hover {
  background: #009643;
}

/* Secure Notice Footer */
.secure-transaction-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: #00b050;
  margin-top: 18px;
  font-weight: 600;
}

/* Decorative corner ribbons (Original Background Implementation Untouched) */
body {
  position: relative;
  background: #f4f7fa;
}

.floyrequest-money-container::before,
.floyrequest-money-container::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.floyrequest-money-container::before {
  background:
    linear-gradient(
      132deg,
      transparent 0%,
      transparent 9%,
      rgba(65, 184, 92, 0.09) 9.2%,
      rgba(65, 184, 92, 0.09) 17%,
      transparent 17.2%,
      transparent 21%,
      rgba(65, 184, 92, 0.055) 21.2%,
      rgba(65, 184, 92, 0.055) 25%,
      transparent 25.2%
    );
}

.floyrequest-money-container::after {
  background:
    linear-gradient(
      312deg,
      transparent 0%,
      transparent 10%,
      rgba(65, 184, 92, 0.09) 10.2%,
      rgba(65, 184, 92, 0.09) 18%,
      transparent 18.2%,
      transparent 22%,
      rgba(65, 184, 92, 0.055) 22.2%,
      rgba(65, 184, 92, 0.055) 26%,
      transparent 26.2%
    );
}

/* ===========================
   STEP 2 CONFIRMATION STYLES
   =========================== */
.confirm-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.confirm-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.confirm-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.confirm-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #00b050;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.confirm-icon-badge.green-bg {
  background: #00b050;
  color: #ffffff;
}

.confirm-text-col {
  display: flex;
  flex-direction: column;
}

.confirm-label-small {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.confirm-val-bold {
  font-size: 15px;
  color: #111827;
  font-weight: 700;
  margin-top: 2px;
}

.confirm-sub-note {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}

.confirm-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 6px 0;
}

.confirm-total-box {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.confirm-total-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.confirm-total-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.confirm-total-amount {
  font-size: 18px;
  font-weight: 800;
  color: #00b050;
}

.back-text-container {
  text-align: center;
  margin-top: 10px;
}

.btn-text-back {
  background: transparent;
  border: none;
  color: #00b050;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-text-back:hover {
  text-decoration: underline;
}

/* Completed Stepper State (Green) */
.step-item.completed .step-circle {
  background: #00b050 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.15);
}
.step-item.completed .step-label {
  color: #00b050 !important;
  font-weight: 700;
}

#step2View {
  padding-bottom: 14px;
}

#step2View .back-text-container {
  margin-top: 6px;
  padding-bottom: 10px;
}

#step2View .btn-primary-green {
  margin-top: 14px;
}

/* ===========================
   STEP 3 M-PESA KEYPAD & PIN STYLES
   =========================== */
.mpesa-pin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}

.mpesa-dots-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  background: #ffffff;
  padding: 12px 32px;
  border-radius: 26px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mpesa-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #e5e7eb;
  transition: background-color 0.2s ease;
}

.mpesa-dot.filled {
  background-color: #00b050;
}

.mpesa-keypad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 8px;
}

.keypad-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.keypad-btn {
  flex: 1;
  height: 52px;
  background-color: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.keypad-btn:active {
  background-color: #e2e8f0;
  transform: scale(0.96);
}

.empty-key {
  background-color: transparent;
  border: none;
  cursor: default;
}

.delete-btn {
  background-color: transparent;
  border: none;
  font-size: 18px;
  color: #4b5563;
}

/* ===========================
   M-PESA MAGIC PIN DOT ANIMATIONS
   =========================== */
@keyframes mpesaPulse {
  0% {
    transform: scale(1);
    background-color: #00b050;
    box-shadow: 0 0 0 0 rgba(0, 176, 80, 0.4);
  }
  50% {
    transform: scale(1.35);
    background-color: #00dc63;
    box-shadow: 0 0 10px 4px rgba(0, 176, 80, 0.6);
  }
  100% {
    transform: scale(1);
    background-color: #00b050;
    box-shadow: 0 0 0 0 rgba(0, 176, 80, 0);
  }
}

.mpesa-dot.processing {
  animation: mpesaPulse 0.6s infinite ease-in-out;
}

.mpesa-dot.processing:nth-child(1) { animation-delay: 0s; }
.mpesa-dot.processing:nth-child(2) { animation-delay: 0.15s; }
.mpesa-dot.processing:nth-child(3) { animation-delay: 0.3s; }
.mpesa-dot.processing:nth-child(4) { animation-delay: 0.45s; }

/* ===========================
   STEP 4 SUCCESS SCREEN STYLES
   =========================== */
.success-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.success-big-circle {
  width: 72px;
  height: 72px;
  background-color: #00b050;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(0, 176, 80, 0.3);
  margin-bottom: 14px;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.confirmed-badge {
  background-color: #e8f5e9;
  color: #00b050;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.tx-ref-card {
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tx-ref-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tx-ref-icon {
  font-size: 24px;
  color: #00b050;
}

.tx-ref-text {
  display: flex;
  flex-direction: column;
}

.tx-ref-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.tx-ref-val {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.5px;
}

.tx-ref-confirmed-tag {
  color: #00b050;
  font-size: 13px;
  font-weight: 700;
}

.success-message-box {
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.success-message-box p {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

.view-details-container {
  text-align: center;
  margin-top: 14px;
}

.btn-text-green {
  background: transparent;
  border: none;
  color: #00b050;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-text-green:hover {
  text-decoration: underline;
}

/* Floynex in-app error popup */
.app-error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.app-error-modal {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.app-error-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff0f0;
  color: #dc2626;
  border: 2px solid #dc2626;
  font-size: 38px;
  font-weight: 700;
  line-height: 56px;
}

.app-error-modal h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 20px;
}

.app-error-modal p {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.app-error-modal button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
/* =========================================
   FLOYNEX RECEIVER QR SCANNER INTERFACE
   ========================================= */

.receiver-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-sizing: border-box;
}

.receiver-scanner-modal {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    background: #f4f7fa;
    border-radius: 24px;
    padding: 20px 18px 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Scanner Header */
.receiver-scanner-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.scanner-back-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1f2937;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.scanner-header-text { flex: 1; }

.scanner-header-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
}

.scanner-header-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Camera Area */
.receiver-camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 55vh;
    background: #111827;
    border-radius: 24px;
    overflow: hidden;
}

/* Camera output */
#receiverQrReader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#receiverQrReader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hide library's own scan decorations */
#receiverQrReader__scan_region { background: transparent !important; }
#receiverQrReader__dashboard { display: none !important; }
#receiverQrReader img { display: none !important; }

/* Scanning Frame */
.scanner-frame {
    position: absolute;
    width: 72%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scanner-corner {
    position: absolute;
    width: 42px;
    height: 42px;
    border-color: #00dc63;
    border-style: solid;
    border-width: 0;
}

.scanner-corner.top-left { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 15px; }
.scanner-corner.top-right { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 15px; }
.scanner-corner.bottom-left { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 15px; }
.scanner-corner.bottom-right { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 15px; }

/* Scanner Instructions */
.scanner-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px auto;
    padding: 13px 18px;
    background: #ffffff;
    border-radius: 30px;
    color: #374151;
    font-size: 13px;
    text-align: center;
}

.scanner-tip i { color: #00b050; font-size: 18px; }

/* Flashlight */
.scanner-flash-btn {
    width: 100%;
    max-width: 360px;
    height: 56px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #00b050;
    border: 2px solid #00b050;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.scanner-flash-btn i { font-size: 19px; }

.scanner-status {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

/* Prevent background scrolling while scanner is open */
body.receiver-scanner-active { overflow: hidden !important; }

/* Smaller phones */
@media (max-width: 380px) {
    .receiver-scanner-overlay { padding: 14px 12px 24px; }
    .scanner-header-text h2 { font-size: 17px; }
    .scanner-header-text p { font-size: 12px; }
    .receiver-camera-container { border-radius: 18px; }
    .scanner-corner { width: 32px; height: 32px; }
}

/* QR Scanner Modal Mobile Adjustments */

@media (max-width: 480px) {

    .receiver-scanner-overlay {
        padding: 14px;
    }

    .receiver-scanner-modal {
        max-width: 100%;
        max-height: 82vh;
        padding: 16px 14px 20px;
        border-radius: 20px;
    }

    .receiver-camera-container {
        max-height: 38vh;
        border-radius: 16px;
    }

}

