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

/* ============================================
   Word to Phone Number Converter - by Yaseen
   ============================================ */

.wtp-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  box-sizing: border-box;
}

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

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

.wtp-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;
}

.wtp-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif;
  max-width: 560px;
  margin: 0 auto !important;
  line-height: 1.6;
}

/* Card */
.wtp-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);
  box-sizing: border-box;
}

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

.wtp-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;
}

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

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

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

/* Input */
.wtp-field { margin-bottom: 18px; }

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

.wtp-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;
}

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

.wtp-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
  letter-spacing: 2px;
  min-width: 0;
  box-sizing: border-box;
}

.wtp-input::placeholder { color: #cbd5e1; font-size: 0.9rem; font-weight: 400; letter-spacing: 0; }

.wtp-input-unit {
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  border-left: 2px solid #e2e8f0;
  background: #f0f9ff;
  white-space: nowrap;
}

/* Tip */
.wtp-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;
}

/* Convert Button */
.wtp-convert-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);
  box-sizing: border-box;
}

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

/* Results */
.wtp-results { box-sizing: border-box; }

/* Phone Card */
.wtp-phone-card {
  background: #334155;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 24px;
  text-align: center;
  animation: wtpFade 0.5s ease forwards;
}

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

.wtp-results-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
}
.wtp-results-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.15), transparent);
}

.wtp-results-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.wtp-phone-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 8px;
  word-break: break-all;
}

.wtp-phone-formatted {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

/* Stats */
.wtp-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.wtp-stat-box {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 10px;
}

.wtp-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 5px;
}

.wtp-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* Copy Button */
.wtp-copy-btn {
  padding: 12px 32px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.wtp-copy-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.wtp-copy-btn.copied { background: #0EA5E9; border-color: #0EA5E9; }

/* Section Titles */
.wtp-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0EA5E9;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wtp-section-sub {
  font-size: 0.82rem;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  margin: 0 0 18px 0 !important;
}

/* Keypad */
.wtp-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 28px;
}

.wtp-key {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  cursor: default;
}

.wtp-key.active {
  background: #0EA5E9;
  border-color: #0EA5E9;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

.wtp-key-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #334155;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.wtp-key.active .wtp-key-num { color: #ffffff; }

.wtp-key-letters {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

.wtp-key.active .wtp-key-letters { color: rgba(255,255,255,0.8); }

.wtp-key-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #334155;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Breakdown */
.wtp-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.wtp-letter-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 52px;
  animation: wtpPop 0.3s ease forwards;
  opacity: 0;
  transform: scale(0.8);
}

.wtp-letter-char {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #334155;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.wtp-letter-arrow {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  display: block;
  margin-bottom: 2px;
}

.wtp-letter-digit {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0EA5E9;
  display: block;
}

/* Usage Tip */
.wtp-usage-tip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
}

.wtp-usage-tip strong { color: #0f172a; }

/* Reset */
.wtp-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;
}

.wtp-reset-btn:hover { background: #0EA5E9; color: #ffffff; }

/* Animations */
@keyframes wtpFade { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes wtpPop  { to   { opacity:1; transform:scale(1); } }

/* Responsive */
@media (max-width: 520px) {
  .wtp-title { font-size: 1.7rem !important; }
  .wtp-phone-number { font-size: 2rem; letter-spacing: 1px; }
  .wtp-phone-formatted { font-size: 1.1rem; }
  .wtp-keypad { max-width: 100%; }
  .wtp-card { padding: 18px; }
  .wtp-phone-card { padding: 20px 16px; }
}
