/* ═══════════════════════════════════════════════════════
   hiremodal.css — Hire Me Modal
   Scoped to #hireModal and .hm-* — won't affect other styles.
═══════════════════════════════════════════════════════ */

/* ── Overlay — soft dark, easy on eyes ── */
#hireModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#hireModal.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Box — fully white, strong shadow to lift off backdrop ── */
.hm-box {
  background: #ffffff;
  border: 1px solid rgba(10, 13, 23, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  position: relative;
  z-index: 10000;
  transform: translateY(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#hireModal.open .hm-box {
  transform: translateY(0);
}

/* ── Header — white, clean, no color ── */
.hm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 13, 23, 0.07);
}
.hm-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9952a;
  margin-bottom: 0.35rem;
}
.hm-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0B1B2F;
  line-height: 1.2;
}
.hm-sub {
  font-size: 0.78rem;
  color: #5a6478;
  margin-top: 0.25rem;
}

/* ── Close button ── */
.hm-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(10, 13, 23, 0.12);
  background: rgba(10, 13, 23, 0.04);
  color: #5a6478;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hm-close:hover {
  background: #e84b1e;
  border-color: #e84b1e;
  color: #fff;
}

/* ── Body ── */
.hm-body {
  padding: 1.75rem 2rem;
  background: #ffffff;
}

.hm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hm-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.hm-full {
  grid-column: 1 / -1;
}

/* ── Labels ── */
.hm-group label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6478;
}

/* ── Inputs — scoped only inside #hireModal ── */
#hireModal input,
#hireModal select,
#hireModal textarea {
  background: #f8f7f4;
  border: 1.5px solid rgba(10, 13, 23, 0.12);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: #0B1B2F;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: none;
}
#hireModal input::placeholder,
#hireModal textarea::placeholder {
  color: #aab0bc;
}
#hireModal input:focus,
#hireModal select:focus,
#hireModal textarea:focus {
  border-color: #c9952a;
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.12);
  outline: none;
}
.hm-group.invalid input,
.hm-group.invalid select,
.hm-group.invalid textarea {
  border-color: #e84b1e;
  box-shadow: 0 0 0 3px rgba(232, 75, 30, 0.1);
}

/* ── Select wrapper ── */
.hm-select-wrap {
  position: relative;
}
.hm-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5a6478;
  font-size: 0.75rem;
  pointer-events: none;
}
#hireModal select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#hireModal select option {
  background: #ffffff;
  color: #0B1B2F;
}

/* ── Textarea ── */
#hireModal textarea {
  resize: vertical;
  min-height: 105px;
}

/* ── Inline errors ── */
.hm-err {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  color: #e84b1e;
  display: none;
  margin-top: 0.1rem;
}
.hm-group.invalid .hm-err {
  display: block;
}

/* ── Footer ── */
.hm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem 1.75rem;
  background: #f8f7f4;
  border-top: 1px solid rgba(10, 13, 23, 0.07);
}
.hm-avail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #5a6478;
}
.hm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: hmPulse 1.8s ease infinite;
  flex-shrink: 0;
}
@keyframes hmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

/* ── Submit button ── */
.btn-hm-send {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #c9952a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-hm-send:hover:not(:disabled) {
  background: #b07d1e;
  transform: translateY(-1px);
}
.btn-hm-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Success state ── */
.hm-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  background: #ffffff;
}
.hm-success.show {
  display: flex;
}
.hm-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.hm-success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0B1B2F;
  margin-bottom: 0.5rem;
}
.hm-success-sub {
  font-size: 0.85rem;
  color: #5a6478;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 1.75rem;
}
.btn-hm-close-success {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1.5px solid rgba(10, 13, 23, 0.15);
  color: #5a6478;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-hm-close-success:hover {
  border-color: #c9952a;
  color: #c9952a;
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .hm-header { padding: 1.4rem 1.25rem 1.2rem; }
  .hm-body   { padding: 1.25rem; }
  .hm-footer {
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hm-send { justify-content: center; }
  .hm-row { grid-template-columns: 1fr; }
}