/* ============================================
   Bedigital.pk — Callback Panel CSS
   2-Stage Call Back Form
   ============================================ */

/* --- Callback Panel --- */
.callback-panel {
  background-color: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.callback-panel__header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--mist);
}

.callback-panel__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

/* --- Stages --- */
.callback-stage {
  display: none;
}

.callback-stage--active {
  display: block;
}

/* --- Stage 1: Form --- */
.callback-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.callback-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.callback-form__input-wrap {
  display: flex;
  align-items: center;
  background-color: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  overflow: hidden;
}

.callback-form__input-wrap:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 232, 0.15);
}

.callback-form__country-code {
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand-blue);
  background-color: var(--mist);
  border-right: 1px solid var(--mist);
  height: 48px;
  user-select: none;
}

.callback-form__input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
  background-color: transparent;
  border: none;
  outline: none;
}

.callback-form__input::placeholder {
  color: rgba(11, 18, 32, 0.35);
  font-family: var(--font-body);
}

.callback-form__input--full {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  flex: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  color: var(--ink);
}

.callback-form__input--full:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 232, 0.15);
}

.callback-form__input--full::placeholder {
  font-family: var(--font-body);
  color: rgba(11, 18, 32, 0.35);
}

.callback-form__input-wrap--error {
  border-color: #e74c3c;
}

.callback-form__error {
  font-size: 0.75rem;
  color: #e74c3c;
  min-height: 0;
  line-height: 1;
}

/* --- Submit Button --- */
.callback-form__submit {
  width: 100%;
}

.callback-form__submit:active {
  transform: scale(0.98);
}

/* --- Note --- */
.callback-form__note {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--ink);
  text-align: center;
  justify-content: center;
  margin-top: 0;
}

.section--dark .callback-panel .callback-form__note {
  color: var(--ink);
  opacity: 1;
}

.section--dark .callback-panel .callback-stage__subtitle,
.section--dark .callback-panel .callback-stage__number,
.section--dark .callback-panel .callback-stage__back,
.section--dark .callback-panel .callback-stage__back i {
  color: var(--ink);
  opacity: 1;
}

.section--dark .callback-panel .callback-panel__success-title {
  color: var(--ink);
}

.section--dark .callback-panel .callback-panel__success-text {
  color: rgba(11, 18, 32, 0.6);
}

.section--dark .callback-panel .callback-choice__label {
  color: var(--ink);
}

.section--dark .callback-panel .callback-choice__desc {
  color: rgba(11, 18, 32, 0.5);
}

.callback-form__note i {
  font-size: 0.6875rem;
  color: var(--brand-blue);
}

/* --- Stage 2: Call Type Selection --- */
.callback-stage__subtitle {
  text-align: center;
  font-size: 1rem;
  color: rgba(11, 18, 32, 0.6);
  margin-bottom: var(--space-sm);
}

.callback-stage__number {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xl);
}

.callback-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.callback-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md);
  border: 2px solid var(--mist);
  border-radius: var(--radius-lg);
  background-color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.callback-choice:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.callback-choice i {
  font-size: 1.75rem;
  line-height: 1;
}

.callback-choice__label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.callback-choice__desc {
  font-size: 0.75rem;
  color: rgba(11, 18, 32, 0.5);
  line-height: 1.3;
}

/* Phone call button */
.callback-choice--phone {
  border-color: var(--brand-blue);
}

.callback-choice--phone:hover {
  background-color: rgba(30, 115, 232, 0.04);
  border-color: var(--brand-blue);
}

.callback-choice--phone i {
  color: var(--brand-blue);
}

/* WhatsApp call button */
.callback-choice--whatsapp {
  border-color: #25D366;
}

.callback-choice--whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.04);
  border-color: #25D366;
}

.callback-choice--whatsapp i {
  color: #25D366;
}

/* Back link */
.callback-stage__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(11, 18, 32, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.callback-stage__back:hover {
  color: var(--brand-blue);
}

/* --- Success State --- */
.callback-stage--success {
  text-align: center;
  padding: var(--space-xl) 0;
}

.callback-panel__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background-color: rgba(43, 196, 138, 0.12);
  border-radius: 50%;
  color: var(--success);
  font-size: 1.75rem;
}

.callback-panel__success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.callback-panel__success-text {
  font-size: 0.875rem;
  color: rgba(11, 18, 32, 0.6);
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .callback-panel {
    padding: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .callback-panel {
    max-width: 420px;
    margin: 0 auto;
  }

  .callback-choices {
    grid-template-columns: 1fr;
  }
}
