/* =============================================
   Egytel — contact form & confirmation
   Palette matches assets/css/style.css
   ============================================= */

/* ── Error surface ─────────────────────────── */
.contact-form-alert {
  border-radius: 10px;
  font-size: .88rem;
  padding: .8rem 1rem;
}
.contact-form-alert[hidden] { display: none !important; }
.contact-form-alert-title { font-weight: 600; }
.contact-form-alert-list { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.contact-form-alert-list li { margin-bottom: .15rem; }

.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}
.invalid-feedback.d-block { font-size: .8rem; margin-top: .3rem; }

/* ── Sending state ─────────────────────────── */
.form-submit { position: relative; }
.form-submit.is-sending { opacity: .85; cursor: progress; }
.form-submit.is-sending::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-start: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin .7s linear infinite;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }

/* ── "Request received" panel ──────────────── */
.contact-success {
  text-align: center;
  padding: 1.4rem .5rem .6rem;
  animation: contact-fade .35s ease-out both;
}
.contact-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(116, 190, 67, .12);
  box-shadow: 0 0 0 8px rgba(116, 190, 67, .06);
}
.contact-success-icon svg { width: 34px; height: 34px; }
.contact-success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}
.contact-success-body {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}
.contact-success-meta {
  display: grid;
  gap: .3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .84rem;
  color: var(--text-light);
  margin-bottom: 1.1rem;
  word-break: break-word;
}
.contact-success-ref strong { color: var(--dark); letter-spacing: .3px; }
.contact-success-call {
  font-size: .86rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}
.contact-success-phone { color: var(--accent); font-weight: 700; }
.contact-success-again {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 1px solid currentColor;
}
.contact-success-again:hover { color: var(--accent); }

@keyframes contact-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 575px) {
  .contact-success { padding-top: .6rem; }
  .contact-success-icon { width: 62px; height: 62px; }
  .contact-success-title { font-size: 1.15rem; }
}
