@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Poppins:wght@400;500;600&display=swap');

/* ============================================
   Percent Off Calculator - by Yaseen
   ============================================ */

.poc-wrapper {
  max-width: 580px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
}

/* Header */
.poc-header {
  text-align: center;
  margin-bottom: 28px;
}

.poc-badge {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid #0EA5E9;
  color: #0EA5E9;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.poc-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
}

.poc-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif;
}

/* Card */
.poc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px rgba(14,165,233,0.07);
}

/* Quick Examples */
.poc-quick-section {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 26px;
  background: #fafcff;
}

.poc-quick-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0EA5E9;
  margin: 0 0 14px 0 !important;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.poc-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poc-quick-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid #0EA5E9;
  background: #0EA5E9;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.poc-quick-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}

/* Input fields */
.poc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.poc-field {
  display: flex;
  flex-direction: column;
}

.poc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px !important;
  font-family: 'Poppins', sans-serif;
}

.poc-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.poc-input-wrap:focus-within {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
  background: #fff;
}

.poc-input-prefix,
.poc-input-suffix {
  padding: 13px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #0EA5E9;
  font-family: 'Montserrat', sans-serif;
  background: #f0f9ff;
  border-right: 2px solid #e2e8f0;
  line-height: 1;
}

.poc-input-suffix {
  border-right: none;
  border-left: 2px solid #e2e8f0;
}

.poc-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
  width: 100%;
  min-width: 0;
}

.poc-input::placeholder { color: #cbd5e1; font-size: 1rem; }

/* Tip */
.poc-tip {
  background: #eff6ff;
  border-left: 3px solid #0EA5E9;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #1e40af;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Calculate Button */
.poc-calc-btn {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  border: none;
  background: #0EA5E9;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 22px rgba(14,165,233,0.35);
}

.poc-calc-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14,165,233,0.4);
}

.poc-calc-btn:active { transform: translateY(0); }

/* Results */
.poc-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 20px rgba(14,165,233,0.07);
}

.poc-results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.poc-results-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0);
}

.poc-results-line:last-child {
  background: linear-gradient(90deg, #e2e8f0, transparent);
}

.poc-results-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #0EA5E9 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Results Grid */
.poc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.poc-result-box {
  background: #334155;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  animation: pocPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
  opacity: 0;
  transform: scale(0.85);
}

.poc-res-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
}

.poc-res-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

/* Sale price box — slightly highlighted */
.poc-box-sale .poc-res-value {
  color: #38bdf8;
}

/* Savings box */
.poc-box-save .poc-res-value {
  color: #ffffff;
}

.poc-res-badge {
  display: inline-block;
  background: #0EA5E9;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 2px;
}

.poc-res-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Savings Bar */
.poc-savings-bar-section {
  margin-bottom: 24px;
}

.poc-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

.poc-savings-bar-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}

.poc-savings-bar-pay {
  background: linear-gradient(90deg, #0EA5E9, #38bdf8);
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.poc-savings-bar-save {
  background: linear-gradient(90deg, #334155, #475569);
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.poc-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: 'Poppins', sans-serif;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 600;
}

/* Reset Button */
.poc-reset-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  border-radius: 10px;
  border: 2px solid #0EA5E9;
  background: transparent;
  color: #0EA5E9;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.poc-reset-btn:hover {
  background: #0EA5E9;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

/* Animation */
@keyframes pocPop {
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
  .poc-inputs { grid-template-columns: 1fr; }
  .poc-results-grid { grid-template-columns: 1fr; }
  .poc-title { font-size: 1.7rem !important; }
  .poc-quick-btns { gap: 8px; }
  .poc-card { padding: 18px; }
  .poc-results { padding: 20px; }
}
