/* Habib Al Mulla — Request Consultation web form
   Navy page, logo header, one white card. Loaded via head_html + Web Form custom_css. */

body.ham-consultation-page,
body[data-path^="request-consultation"],
body.ham-consultation-page html,
body[data-path^="request-consultation"] html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0b0c2e !important;
  min-height: 100%;
}

body.ham-consultation-page,
body[data-path^="request-consultation"] {
  background: #0b0c2e !important;
  color: #ffffff !important;
  min-height: 100vh;
}

body.ham-consultation-page .navbar,
body[data-path^="request-consultation"] .navbar,
body.ham-consultation-page nav.navbar,
body[data-path^="request-consultation"] nav.navbar {
  display: none !important;
}

body.ham-consultation-page .page-breadcrumbs,
body[data-path^="request-consultation"] .page-breadcrumbs,
body.ham-consultation-page .page-header,
body[data-path^="request-consultation"] .page-header,
body.ham-consultation-page .page-header-wrapper,
body[data-path^="request-consultation"] .page-header-wrapper,
body.ham-consultation-page .page-footer,
body[data-path^="request-consultation"] .page-footer,
body.ham-consultation-page .web-footer,
body[data-path^="request-consultation"] .web-footer,
body.ham-consultation-page footer.web-footer,
body[data-path^="request-consultation"] footer.web-footer {
  display: none !important;
}

body.ham-consultation-page .page-container,
body[data-path^="request-consultation"] .page-container,
body.ham-consultation-page .page-content-wrapper,
body[data-path^="request-consultation"] .page-content-wrapper,
body.ham-consultation-page main.container,
body[data-path^="request-consultation"] main.container,
body.ham-consultation-page .page_content,
body[data-path^="request-consultation"] .page_content,
body.ham-consultation-page .container,
body[data-path^="request-consultation"] .container,
body.ham-consultation-page .web-form-wrapper,
body[data-path^="request-consultation"] .web-form-wrapper {
  background: #0b0c2e !important;
  color: #ffffff !important;
}

body.ham-consultation-page main.container,
body[data-path^="request-consultation"] main.container {
  max-width: 640px !important;
  padding: 2.5rem 1rem 3rem !important;
}

body.ham-consultation-page .web-form-header,
body[data-path^="request-consultation"] .web-form-header,
body.ham-consultation-page .web-form-container > div[style*="height: 3rem"],
body[data-path^="request-consultation"] .web-form-container > div[style*="height: 3rem"] {
  display: none !important;
}

body.ham-consultation-page .web-form-container,
body[data-path^="request-consultation"] .web-form-container {
  display: none !important;
}

/* --- Injected shell (ham_consultation.js) --- */
.ham-consultation-shell {
  padding: 0.5rem 0 2rem;
}

.ham-consultation-card {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.5rem 1.5rem;
  color: #0f172a;
}

@media (min-width: 640px) {
  .ham-consultation-card {
    padding: 2.25rem 2rem 1.75rem;
  }
}

.ham-consultation-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.ham-consultation-subtitle {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}

.ham-consultation-form-slot form.web-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body[data-path^="request-consultation"] .web-form-body,
body[data-path^="request-consultation"] .web-form-wrapper {
  background: transparent !important;
  padding: 0 !important;
}

body[data-path^="request-consultation"] .web-form .indicator-pill,
body[data-path^="request-consultation"] .web-form-actions .btn-secondary {
  display: none !important;
}

body[data-path^="request-consultation"] .frappe-control .control-label,
body[data-path^="request-consultation"] .frappe-control label,
body[data-path^="request-consultation"] .web-form-body label {
  color: #1e293b !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
}

body[data-path^="request-consultation"] .frappe-control .reqd:after,
body[data-path^="request-consultation"] .control-label .reqd {
  color: #c08a5a !important;
}

body[data-path^="request-consultation"] .web-form .form-control,
body[data-path^="request-consultation"] .web-form textarea.form-control,
body[data-path^="request-consultation"] .web-form select.form-control,
body[data-path^="request-consultation"] .web-form input[type="text"],
body[data-path^="request-consultation"] .web-form input[type="email"],
body[data-path^="request-consultation"] .web-form input[type="tel"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  min-height: 44px;
  width: 100%;
  box-shadow: none !important;
}

body[data-path^="request-consultation"] .web-form textarea.form-control {
  min-height: 120px;
}

body[data-path^="request-consultation"] .web-form .form-control:focus,
body[data-path^="request-consultation"] .web-form textarea.form-control:focus,
body[data-path^="request-consultation"] .web-form select.form-control:focus {
  border-color: #c08a5a !important;
  box-shadow: 0 0 0 3px rgba(192, 138, 90, 0.18) !important;
  outline: none !important;
}

body[data-path^="request-consultation"] .web-form .form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

body[data-path^="request-consultation"] .web-form .help-box,
body[data-path^="request-consultation"] .web-form .text-muted {
  color: #64748b !important;
}

body[data-path^="request-consultation"] .web-form .frappe-control {
  margin-bottom: 1.125rem !important;
}

body[data-path^="request-consultation"] .web-form-footer {
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 0.75rem !important;
  padding: 1.25rem 0 0 !important;
  background: transparent !important;
}

body[data-path^="request-consultation"] .web-form-footer .left-area,
body[data-path^="request-consultation"] .web-form-footer .center-area {
  display: none !important;
}

body[data-path^="request-consultation"] .web-form-footer .web-form-actions {
  display: flex !important;
  justify-content: stretch !important;
}

body[data-path^="request-consultation"] .web-form-footer .right-area {
  width: 100% !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 0.65rem !important;
}

body[data-path^="request-consultation"] .web-form-footer .discard-btn {
  display: none !important;
}

body[data-path^="request-consultation"] .web-form-footer .submit-btn,
body[data-path^="request-consultation"] .web-form-footer .btn-primary {
  width: 100% !important;
  background: #c08a5a !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 0.7rem 1rem !important;
  border-radius: 8px !important;
  margin: 0 !important;
}

body[data-path^="request-consultation"] .web-form-footer .submit-btn:hover,
body[data-path^="request-consultation"] .web-form-footer .submit-btn:focus,
body[data-path^="request-consultation"] .web-form-footer .btn-primary:hover {
  background: #d1a47b !important;
  color: #0b0c2e !important;
}

.ham-consultation-powered {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Frappe msgprint / validation dialogs ---
   Page body uses white text on navy; dialogs are white and inherit that
   color, which makes modal body copy (e.g. missing required fields) invisible.
   Scope to consultation page only — do not restyle desk or login modals. */
body.ham-consultation-page .modal,
body[data-path^="request-consultation"] .modal,
body.ham-consultation-page .modal-dialog,
body[data-path^="request-consultation"] .modal-dialog,
body.ham-consultation-page .modal-content,
body[data-path^="request-consultation"] .modal-content,
body.ham-consultation-page .modal-header,
body[data-path^="request-consultation"] .modal-header,
body.ham-consultation-page .modal-title,
body[data-path^="request-consultation"] .modal-title,
body.ham-consultation-page .modal-body,
body[data-path^="request-consultation"] .modal-body,
body.ham-consultation-page .msgprint,
body[data-path^="request-consultation"] .msgprint,
body.ham-consultation-page .frappe-msgprint,
body[data-path^="request-consultation"] .frappe-msgprint,
body.ham-consultation-page .msg-dialog,
body[data-path^="request-consultation"] .msg-dialog,
body.ham-consultation-page .modal-body p,
body[data-path^="request-consultation"] .modal-body p,
body.ham-consultation-page .modal-body ul,
body[data-path^="request-consultation"] .modal-body ul,
body.ham-consultation-page .modal-body li,
body[data-path^="request-consultation"] .modal-body li,
body.ham-consultation-page .msgprint ul,
body[data-path^="request-consultation"] .msgprint ul,
body.ham-consultation-page .msgprint li,
body[data-path^="request-consultation"] .msgprint li {
  color: #0f172a !important;
}

body.ham-consultation-page .modal-content,
body[data-path^="request-consultation"] .modal-content {
  background: #ffffff !important;
}

body.ham-consultation-page .modal-footer .btn-primary,
body[data-path^="request-consultation"] .modal-footer .btn-primary,
body.ham-consultation-page .modal-footer .btn-modal-primary,
body[data-path^="request-consultation"] .modal-footer .btn-modal-primary {
  background: #c08a5a !important;
  border-color: #c08a5a !important;
  color: #ffffff !important;
}

/* --- Success / confirmation state --- */
.ham-consultation-shell.is-success .ham-consultation-card {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
}

body.ham-consultation-page .success-page,
body[data-path^="request-consultation"] .success-page {
  display: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 0.25rem !important;
  margin: 0 !important;
  text-align: center;
  color: #0f172a !important;
  animation: ham-success-in 0.45s ease-out;
}

body.ham-consultation-page .success-page:not(.hide),
body[data-path^="request-consultation"] .success-page:not(.hide),
.ham-consultation-shell.is-success .success-page {
  display: block !important;
}

@keyframes ham-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ham-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: #c08a5a;
  animation: ham-check-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes ham-check-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.ham-consultation-page .success-page .success-header,
body[data-path^="request-consultation"] .success-page .success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 0.75rem;
}

body.ham-consultation-page .success-page .success-icon,
body[data-path^="request-consultation"] .success-page .success-icon {
  display: none !important;
}

body.ham-consultation-page .success-page .success-title,
body[data-path^="request-consultation"] .success-page .success-title {
  color: #0b0c2e !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 0.35rem !important;
  letter-spacing: -0.01em;
}

body.ham-consultation-page .success-page .success-body,
body[data-path^="request-consultation"] .success-page .success-body {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
}

body.ham-consultation-page .success-page .success-message,
body[data-path^="request-consultation"] .success-page .success-message {
  color: #64748b !important;
  font-size: 0.975rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

body.ham-consultation-page .success-page .success-footer,
body[data-path^="request-consultation"] .success-page .success-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

body.ham-consultation-page .success-page .new-btn,
body[data-path^="request-consultation"] .success-page .new-btn {
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
  padding: 0.55rem 1rem !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 280px;
}

body.ham-consultation-page .success-page .new-btn:hover,
body[data-path^="request-consultation"] .success-page .new-btn:hover {
  background: #f8fafc !important;
  border-color: #c08a5a !important;
  color: #0b0c2e !important;
}

@media (max-width: 639px) {
  body.ham-consultation-page .success-page .success-title,
  body[data-path^="request-consultation"] .success-page .success-title {
    font-size: 1.25rem !important;
  }

  .ham-success-check {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }
}
