/* =========================================================
   hire-developers.css  –  Hire Developers Page Styles
   ========================================================= */

/* ── Global heading overrides – match other service pages ── */
.hd-hero-title,
.hd-what-title,
.hd-spec-title,
.hd-process-title,
.hd-why-title,
.hd-faq-title,
.hd-services-section-header h2,
.hd-what-feature-card h3,
.hd-service-card-body h3,
.hd-process-step-content h3,
.hd-why-card h3,
.industry-title {
  color: #111827 !important;
  font-weight: 500 !important;
}

/* Dark-background sections keep white headings – intentional */
.hd-challenges-title,
.hd-cta-content h2 {
  color: #ffffff !important;
}

/* ── Hero Section ── */
.hd-hero {
  background: #ffffff;
  padding: 100px 0 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}
.hd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 95% 20%, rgba(0, 200, 130, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(0, 180, 130, 0.04) 0%, transparent 65%);
  pointer-events: none;
}
.hd-hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}
.hd-hero-left { flex: 0 0 50%; max-width: 50%; }
.hd-hero-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.hd-hero-badge {
  display: inline-flex;
  align-items: center;
  background: #f0fdf8;
  border: 1px solid #bbf7d0;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hd-hero-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem) !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.03em;
}
.hd-hero-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
}

/* ── CTA Buttons ── */
.hd-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00ED87;
  color: #064e3b;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 9px;
  text-decoration: none;
  border: 2px solid #00ED87;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 201, 122, 0.28);
}
.hd-btn-primary:hover {
  background: #00d97e;
  border-color: #00d97e;
  color: #064e3b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 122, 0.38);
  text-decoration: none;
}
.hd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 9px;
  border: 2px solid #e2e8f0;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hd-btn-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

/* ── Hero Stats ── */
.hd-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #f1f5f9;
}
.hd-stat-item { display: flex; flex-direction: column; gap: 4px; }
.hd-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.hd-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

/* ── Hero Image ── */
.hd-hero-img-wrap { position: relative; display: inline-block; width: 100%; }
.hd-hero-img {
  width: 100%;
  max-width: 560px;
  min-height: 360px;
  border-radius: 5px;
  display: block;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
  object-fit: cover;
  object-position: center;
}
.hd-hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  border: 1px solid #f1f5f9;
}
.hd-hero-img-badge i { color: #00c97a; font-size: 16px; }

/* ── Trusted Bar ── */
.hd-trusted-bar {
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}
.hd-trusted-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hd-trusted-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}
.hd-trusted-list { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hd-trusted-list span { font-size: 13.5px; color: #475569; font-weight: 500; }
.hd-trusted-list .hd-dot { color: #cbd5e1; font-size: 12px; }

/* ── Hero Responsive ── */
@media (max-width: 991px) {
  .hd-hero { padding: 80px 0 0; }
  .hd-hero-inner { gap: 32px; padding-bottom: 48px; }
  .hd-hero-left { flex: 0 0 52%; max-width: 52%; }
  .hd-hero-img { max-width: 100%; min-height: 280px; }
  .hd-hero-title { font-size: 1.75rem !important; }
}
@media (max-width: 767px) {
  .hd-hero { padding: 72px 0 0; }
  .hd-hero-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 36px; }
  .hd-hero-left { flex: none; max-width: 100%; width: 100%; }
  .hd-hero-right { width: 100%; justify-content: center; }
  .hd-hero-img { max-width: 100%; border-radius: 14px; }
  .hd-hero-img-badge { font-size: 12px; padding: 8px 14px; }
  .hd-hero-subtitle { font-size: 0.975rem; }
  .hd-hero-title { font-size: 1.45rem !important; }
  .hd-trusted-inner { gap: 12px; }
  .hd-trusted-label { font-size: 10px; }
  .hd-trusted-list span { font-size: 13px; }
  .hd-hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .hd-btn-primary, .hd-btn-secondary { font-size: 14px; padding: 11px 22px; }
  .hd-stat-value { font-size: 1.4rem; }
}

/* =========================================================
   What Is Hire Developers Section
   ========================================================= */
.hd-what-section {
  padding: 80px 0;
  background: #ffffff;
}
.hd-what-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}
.hd-what-badge {
  display: inline-flex;
  align-items: center;
  background: #f0fdf8;
  border: 1px solid #bbf7d0;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hd-what-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 18px !important;
  line-height: 1.2;
}
.hd-what-intro {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.7;
  font-weight: 500;
}
.hd-what-description, .hd-what-cta {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 12px;
}
.hd-what-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hd-what-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.hd-what-feature-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  border-color: #bbf7d0;
}
.hd-what-feature-icon {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #059669;
  font-size: 22px;
}
.hd-what-feature-card h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
}
.hd-what-feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) {
  .hd-what-section { padding: 60px 20px; }
  .hd-what-features { grid-template-columns: 1fr; }
}

/* =========================================================
   Common Challenges Section
   ========================================================= */
.hd-challenges-section {
  padding: 72px 0;
  background: #0f172a;
}
.hd-challenges-title {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px !important;
}
.hd-challenges-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px 32px;
}
.hd-challenges-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hd-challenges-list li i {
  color: #00ED87;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hd-challenges-section { padding: 56px 20px; }
  .hd-challenges-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Developer Specializations Header
   ========================================================= */
.hd-specializations-header {
  padding: 72px 0 40px;
  background: #f8fafc;
  text-align: center;
}
.hd-spec-header-content { max-width: 700px; margin: 0 auto; }
.hd-spec-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px !important;
}
.hd-spec-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 12px;
}
.hd-spec-description {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   Services Sections (Developer Specialization Cards)
   ========================================================= */
.hd-services-section {
  padding: 72px 0;
  background: #ffffff;
}
.hd-services-section--alt {
  background: #f8fafc;
}
.hd-services-section-header {
  margin-bottom: 40px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hd-services-section-tag {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
}
.hd-services-section-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.2;
}

/* ── Services Grid ── */
.hd-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Service Cards ── */
.hd-service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  min-height: 240px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.hd-service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  border-color: #bbf7d0;
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.hd-service-card-icon {
  width: 64px;
  height: 64px;
  background: #f8fafc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.hd-service-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
/* Text-based icon abbreviations */
.hd-service-icon-text {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  user-select: none;
}
.hd-service-card:hover .hd-service-card-icon {
  border-color: #bbf7d0;
  box-shadow: 0 4px 14px rgba(0, 200, 130, 0.15);
}
.hd-service-card-body {
  flex: 1;
  margin-bottom: 20px;
}
.hd-service-card-body h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
  line-height: 1.3;
}
.hd-service-card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.hd-service-card-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
.hd-service-card-arrow::before {
  content: "Explore Now";
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.hd-service-card-arrow i {
  font-size: 13px;
  color: #ffffff;
  padding: 9px;
  border-radius: 50%;
  background: #00ED87;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hd-service-card:hover .hd-service-card-arrow i {
  background: #00c97a;
  transform: translateX(3px);
}

/* ── Services Responsive ── */
@media (max-width: 1200px) {
  .hd-services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}
@media (max-width: 768px) {
  .hd-services-section { padding: 56px 20px; }
  .hd-services-grid { grid-template-columns: 1fr; gap: 16px; padding: 0; }
  .hd-service-card { padding: 26px 22px; min-height: auto; }
}
@media (max-width: 480px) {
  .hd-service-card { border-radius: 12px; padding: 22px 18px; }
}

/* =========================================================
   Hiring Process Section  (.hd-process-section)
   ========================================================= */
.hd-process-section {
  padding: 80px 0;
  background: #f8fafc;
}
.hd-process-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.hd-process-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px !important;
}
.hd-process-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 12px;
}
.hd-process-description {
  font-size: 0.97rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}
.hd-process-steps {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.hd-process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, #00ED87, #e2e8f0);
  z-index: 0;
}
.hd-process-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}
.hd-process-step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: #ffffff;
  border: 2px solid #00ED87;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #059669;
  box-shadow: 0 4px 14px rgba(0, 200, 130, 0.18);
  flex-shrink: 0;
}
.hd-process-step-content h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}
.hd-process-step-content p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 768px) {
  .hd-process-section { padding: 60px 20px; }
  .hd-process-steps::before { left: 22px; }
  .hd-process-step-number { width: 46px; height: 46px; min-width: 46px; font-size: 13px; }
}

/* =========================================================
   Why Choose MaMo Section  (.hd-why-section)
   ========================================================= */
.hd-why-section {
  padding: 80px 0;
  background: #ffffff;
}
.hd-why-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center;
  margin-bottom: 48px !important;
  line-height: 1.2;
}
.hd-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hd-why-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.hd-why-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
  border-color: #bbf7d0;
}
.hd-why-icon {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #059669;
  margin-bottom: 18px;
}
.hd-why-card h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
}
.hd-why-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) {
  .hd-why-section { padding: 60px 20px; }
  .hd-why-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .hd-why-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ Section  (.hd-faq-section)
   ========================================================= */
.hd-faq-section {
  padding: 80px 0;
  background: #ffffff;
}
.hd-faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.hd-faq-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px !important;
}
.hd-faq-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}
.hd-faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.hd-faq-item {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hd-faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.hd-faq-question i {
  transition: transform 0.3s;
  color: #059669;
  flex-shrink: 0;
  font-size: 14px;
}
.hd-faq-item.active .hd-faq-question i { transform: rotate(180deg); }
.hd-faq-item.active .hd-faq-question { color: #059669; }
.hd-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.hd-faq-answer-content { padding: 0 24px 20px; }
.hd-faq-answer-content p {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.75;
}
@media (max-width: 768px) {
  .hd-faq-section { padding: 60px 20px; }
  .hd-faq-question { padding: 18px 18px; font-size: 0.95rem; }
  .hd-faq-answer-content { padding: 0 18px 18px; }
}

/* =========================================================
   CTA Section  (.hd-cta-section)
   ========================================================= */
.hd-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0b3c3f 0%, #065f46 100%);
  text-align: center;
}
.hd-cta-content { max-width: 600px; margin: 0 auto; }
.hd-cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
  line-height: 1.2;
}
.hd-cta-content p {
  font-size: 1.05rem;
  color: #a7f3d0;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hd-cta-section .hd-btn-primary {
  font-size: 16px;
  padding: 15px 36px;
}
@media (max-width: 768px) {
  .hd-cta-section { padding: 60px 20px; }
}

/* =========================================================
   Client Logos Marquee  (.hd-clients-section)
   ========================================================= */
.hd-clients-section {
  padding: 40px 0 10px;
  background: #ffffff;
}
.industry-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b3c3f;
  margin-bottom: 24px;
}
.client-line-img { width: 100%; max-width: 100%; display: block; }
.logo-marquee-wrapper { overflow: hidden; }
.logo-marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.logo-marquee-item { flex-shrink: 0; }
.client-img {
  height: 90px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s;
}
.client-img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Hire Inquiry Modal
   ========================================================= */
.hd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hd-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.hd-modal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px 40px 36px;
  position: relative;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.20), 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hd-modal-overlay.is-open .hd-modal {
  transform: translateY(0) scale(1);
}
.hd-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  z-index: 2;
  line-height: 1;
}
.hd-modal-close:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}
.hd-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-right: 44px;
}
.hd-modal-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, #0b3c3f 0%, #1fa97f 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ed87;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(0, 200, 130, 0.28);
  flex-shrink: 0;
}
.hd-modal-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hd-modal-header h2 {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 5px !important;
  line-height: 1.2 !important;
}
.hd-modal-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}
.hd-modal-role-tag {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.4;
}
.hd-modal-role-label { color: #64748b; font-weight: 500; }
#hdRoleDisplay { font-weight: 700; color: #15803d; }
.hd-modal-form { display: flex; flex-direction: column; }
.hd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.hd-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.hd-form-row .hd-form-group { margin-bottom: 0; }
.hd-form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
}
.hd-form-group input,
.hd-form-group select,
.hd-form-group textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 14.5px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.hd-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.hd-form-group input:focus,
.hd-form-group select:focus,
.hd-form-group textarea:focus {
  border-color: #00ed87;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 237, 135, 0.12);
}
.hd-form-group input::placeholder,
.hd-form-group textarea::placeholder { color: #94a3b8; }
.hd-form-group textarea { resize: vertical; min-height: 96px; }
.hd-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13.5px;
  margin-bottom: 16px;
  font-weight: 500;
}
.hd-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, #00ed87 0%, #00c970 100%);
  color: #0b3c3f;
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
  box-shadow: 0 4px 18px rgba(0, 200, 130, 0.32);
}
.hd-modal-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 130, 0.42);
}
.hd-modal-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.hd-modal-success { text-align: center; padding: 24px 0 12px; }
.hd-modal-success i {
  font-size: 4rem;
  color: #00ed87;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,200,130,0.3));
}
.hd-modal-success h3 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
}
.hd-modal-success p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hd-modal-close-success {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.hd-modal-close-success:hover { background: #e2e8f0; border-color: #cbd5e1; }

/* Modal Responsive */
@media (max-width: 600px) {
  .hd-modal { padding: 30px 22px 28px; border-radius: 18px; }
  .hd-modal-header { gap: 14px; }
  .hd-modal-icon { width: 50px; height: 50px; min-width: 50px; font-size: 20px; }
  .hd-modal-header h2 { font-size: 1.3rem !important; }
}
@media (max-width: 480px) {
  .hd-form-row { grid-template-columns: 1fr; gap: 0; }
  .hd-form-row .hd-form-group { margin-bottom: 16px; }
  .hd-modal-submit { font-size: 15px; padding: 14px; }
}
