.consultation-panel {
  position: relative;
  padding: 32px;
  color: var(--gray-950);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.consultation-panel::before {
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  border-radius: 0 0 3px 3px;
}

.consultation-panel__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--blue-500);
  background: #e8f5f8;
  border-radius: 13px;
}

.panel-icon svg { width: 25px; height: 25px; }
.consultation-panel__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--blue-500); text-transform: uppercase; }
.consultation-panel h2 { margin-top: 2px; font-size: 24px; font-weight: 800; color: var(--navy-900); }
.consultation-panel__description { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.search { margin-top: 24px; }

.search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
}

.search__field { position: relative; }
.search__field > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: var(--gray-400);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 58px;
  padding: 0 16px 0 50px;
  font: 500 18px var(--font-body);
  letter-spacing: 0.04em;
  color: var(--gray-950);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search input::placeholder { color: var(--gray-400); opacity: 1; }
.search input:focus { background: var(--white); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(22, 119, 166, 0.1); }
.search input[aria-invalid="true"] { border-color: var(--error); }
.search input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 56, 50, 0.1); }

.search__feedback {
  min-height: 22px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--gray-600);
}

.search__feedback.is-error { color: var(--error); }
.search__feedback.is-success { color: var(--success); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  font: 700 15px var(--font-heading);
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(135deg, #0b3654, var(--navy-900));
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(7, 27, 46, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn svg { width: 20px; height: 20px; transition: transform 0.18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(7, 27, 46, 0.23); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(101, 210, 220, 0.5); outline-offset: 3px; }

.search__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--gray-600);
}

.search__privacy svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--success); }

.search__loading,
.search__result {
  min-height: 270px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.search__loading:not([hidden]),
.search__result:not([hidden]) { display: flex; }

.search__spinner {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 3px solid #dcebf0;
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.search__spinner::after {
  position: absolute;
  inset: 7px;
  content: "";
  background: #e8f5f8;
  border-radius: 50%;
}

.search__loading-title { font: 800 18px var(--font-heading); color: var(--navy-900); }
.search__loading #loading-message { margin-top: 6px; font-size: 13px; color: var(--gray-600); }

.search__progress {
  width: 180px;
  height: 4px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--gray-200);
  border-radius: 999px;
}

.search__progress span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  border-radius: inherit;
  animation: progress 1.5s ease-in-out infinite;
}

.search__result:focus { outline: none; }

.search__result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--white);
  background: linear-gradient(145deg, #21a779, var(--success-dark));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(15, 138, 98, 0.22), 0 0 0 8px #e9f8f2;
}

.search__result-icon svg { width: 28px; height: 28px; }
.search__result-title { font: 700 12px var(--font-heading); letter-spacing: 0.12em; color: var(--success-dark); text-transform: uppercase; }
.search__result-value { margin-top: 5px; font: 800 clamp(32px, 6vw, 42px) var(--font-heading); letter-spacing: -0.04em; color: var(--navy-900); }
.search__result-divider { width: 42px; height: 2px; margin-top: 15px; background: var(--gray-200); }
.search__result-instruction { max-width: 360px; margin-top: 15px; font-size: 13px; line-height: 1.55; color: var(--gray-600); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(85%); }
  100% { transform: translateX(250%); }
}

@media (max-width: 640px) {
  .consultation-panel { padding: 25px 21px; border-radius: 20px; }
  .consultation-panel h2 { font-size: 21px; }
  .search__privacy { align-items: flex-start; text-align: left; }
}
