/* =========================================================
   1. MAIN WRAPPER: FULL WIDTH, ZERO SECONDARY BORDER
   ========================================================= */

.fc-tool-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  color: #0f172a;
}

/* 2. Tighten Gap Between FincoLoan Badge & Tool Title */
.fcu-tool-shell .fcu-global-brand {
  margin: 0 auto 4px auto;
  padding: 3px 12px;
  font-size: 11px;
}

.fc-tool-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.fc-tool-title,
.fcu-tool-shell h2.fc-tool-title {
  color: #0d6efd;
  font-size: 22px;
  font-weight: 800;
  margin: 2px 0 4px 0;
  line-height: 1.25;
}

.fc-tool-subtitle,
.fcu-tool-shell .fc-tool-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

/* 3. Open Form Structure */
.fc-rm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.fc-rm-field {
  width: 100%;
  box-sizing: border-box;
}

.fc-rm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fc-rm-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 8px;
}

.fc-rm-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}

.fc-rm-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Compact Value Boxes (38px height) */
.fc-rm-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fc-rm-input-wrap:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2.5px rgba(13, 110, 253, 0.12);
}

.fc-rm-prefix,
.fc-rm-suffix {
  background: #f1f5f9;
  padding: 8px 11px;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}

.fc-rm-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  box-sizing: border-box;
}

/* Compact Dropdown */
.fc-rm-select-wrap {
  position: relative;
  width: 100%;
}

.fc-rm-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 34px 8px 11px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d6efd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.fc-rm-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2.5px rgba(13, 110, 253, 0.12);
}

/* Calculate Button */
.fc-rm-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px 20px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  background: #0d6efd;
  color: #ffffff;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
  transition: background 0.2s;
}

.fc-rm-btn:hover {
  background: #0b5ed7;
}

/* 4. Results Section */
.fc-rm-results {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px dashed #cbd5e1;
  animation: fcFadeIn 0.3s ease-in-out;
}

.fc-rm-res-head {
  text-align: center;
  margin-bottom: 16px;
}

.fc-rm-res-head span {
  font-size: 11px;
  font-weight: 800;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.fc-rm-res-head h3 {
  margin: 3px 0 0 0;
  font-size: 20px;
  color: #0f172a;
  font-weight: 800;
}

.fc-rm-hero {
  padding: 14px 16px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

.fc-rm-res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.fc-rm-box {
  background: #0a3d62;
  border: 1.2px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}

.fc-rm-box-highlight {
  background: #082f4d;
  border-color: rgba(96, 165, 250, 0.55);
}

.fc-rm-box-title {
  font-size: 12px;
  color: #dbeafe;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.fc-rm-box-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.fc-rm-box-sub {
  font-size: 11px;
  color: #bfdbfe;
  margin-top: 4px;
  display: block;
}

.fc-rm-green {
  color: #34d399 !important;
}

.fc-rm-red {
  color: #fca5a5 !important;
}

.fc-rm-due-card {
  background: #082f4d;
  border: 1.2px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fc-rm-due-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.fc-rm-due-desc {
  margin: 3px 0 0 0;
  font-size: 11.5px;
  color: #bfdbfe;
  line-height: 1.4;
}

.fc-rm-due-right strong {
  font-size: 20px;
  font-weight: 800;
  color: #fca5a5;
  white-space: nowrap;
}

.fc-rm-adv-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0d6efd;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.fc-rm-adv-head {
  font-size: 13.5px;
  font-weight: 800;
  color: #0d6efd;
  margin-bottom: 10px;
}

.fc-rm-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fc-rm-adv-point {
  background: #ffffff;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid #f1f5f9;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.fc-rm-adv-point strong {
  display: block;
  color: #0f172a;
  margin-bottom: 3px;
  font-size: 12.5px;
}

/* Disclaimer */
.fc-rm-disclaimer {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
  margin-top: 16px;
}

@keyframes fcFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
  .fc-rm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fc-rm-res-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fc-rm-adv-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fc-rm-due-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fc-rm-label {
    font-size: 13px;
  }

  .fc-rm-badge {
    font-size: 11px;
  }

  .fc-rm-hero {
    font-size: 16px;
    padding: 12px;
  }
}
