* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background: #f4f7fc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: white;
  max-width: 560px;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 35px -8px rgba(0,0,0,0.15), 0 8px 12px -4px rgba(0,0,0,0.05);
  padding: 2rem 2rem 2.2rem;
  transition: all 0.2s ease;
  border: 1px solid #e9eef3;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b1c2e;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1 span {
  background: #e6edf6;
  color: #1a4972;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 40px;
  margin-left: 4px;
}

.subhead {
  color: #4a627a;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  border-left: 3px solid #2d7fc1;
  padding-left: 14px;
  font-weight: 400;
}

.endpoint-badge {
  background: #f0f4fa;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  color: #1f486b;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', monospace;
  word-break: break-all;
  margin-bottom: 1.8rem;
  border: 1px solid #d9e2ec;
}

.form-group {
  margin-bottom: 1.8rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #1f3a57;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid #cfdde9;
  border-radius: 18px;
  transition: border 0.15s, box-shadow 0.15s;
  padding: 0 4px 0 16px;
}

.phone-input-wrapper:focus-within {
  border-color: #1f6eb0;
  box-shadow: 0 0 0 4px rgba(31,110,176,0.12);
}

.country-code-static {
  font-weight: 500;
  color: #1e3e5c;
  padding-right: 6px;
  font-size: 1.1rem;
}

#phoneNumber {
  width: 100%;
  padding: 16px 8px 16px 4px;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-weight: 450;
  background: transparent;
  color: #0b1c2e;
  letter-spacing: 0.3px;
}

#phoneNumber::placeholder {
  color: #9aafc4;
  font-weight: 400;
  font-size: 1rem;
}

.hint {
  font-size: 0.8rem;
  color: #55718b;
  margin-top: 8px;
  margin-left: 6px;
}

.hint i {
  font-style: normal;
  background: #eef3f9;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 4px;
}

.key-note {
  display: flex;
  align-items: center;
  background: #f2f6fb;
  padding: 12px 18px;
  border-radius: 16px;
  margin: 24px 0 20px;
  border-left: 4px solid #2c7cb0;
}

.key-note .icon {
  font-size: 1.3rem;
  margin-right: 14px;
}

.key-note p {
  color: #1f486b;
  font-size: 0.9rem;
  font-weight: 450;
}

.key-note strong {
  font-weight: 600;
  background: #ffffffb0;
  padding: 3px 10px;
  border-radius: 40px;
  margin-left: 6px;
  font-family: monospace;
  border: 1px solid #b7cee4;
}

.btn {
  background: #0f2e47;
  color: white;
  border: none;
  width: 100%;
  padding: 18px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 60px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 6px 12px -4px rgba(15,46,71,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.2px;
  border: 1px solid #1d4868;
}

.btn:hover {
  background: #1a405c;
  transform: scale(1.01);
  box-shadow: 0 8px 16px -4px #0a1e2d4d;
}

.btn:disabled {
  opacity: 0.65;
  background: #55728b;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.result-panel {
  margin-top: 28px;
  border-radius: 20px;
  background: #fafcfe;
  border: 1px solid #dde5ef;
  overflow: hidden;
}

.result-header {
  padding: 14px 20px;
  background: #e9f0f7;
  font-weight: 600;
  color: #183c56;
  border-bottom: 1px solid #cddbe9;
  display: flex;
  justify-content: space-between;
}

.result-content {
  padding: 20px;
  background: #ffffff;
}

pre {
  background: #0f1e2c;
  color: #e3eef9;
  padding: 18px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Menlo', monospace;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #1e3f5a;
}

.badge-available {
  background: #117f4a;
  color: white;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-unavailable {
  background: #a13e3e;
  color: white;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
}

.error-message {
  color: #b13e3e;
  background: #ffeae9;
  padding: 14px 18px;
  border-radius: 18px;
  margin: 12px 0 0;
  border-left: 6px solid #c24a4a;
}

.footer-note {
  text-align: right;
  font-size: 0.7rem;
  margin-top: 8px;
  color: #6e8da8;
}