/* ============================================
   MEET WITH US MODAL
   Custom form modal. Matches the glassmorphism
   design system in styles.css / measurement.css.
   ============================================ */

.meet-modal[hidden] { display: none; }

.meet-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.meet-modal.is-open { opacity: 1; }

.meet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 21, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.meet-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(22, 32, 48, 0.98) 0%, rgba(14, 22, 34, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 44px 36px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 160, 255, 0.08);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.meet-modal.is-open .meet-modal-panel { transform: translateY(0); }

.meet-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.meet-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.meet-modal-header {
  margin-bottom: 24px;
  text-align: left;
}
.meet-modal-header .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00A0FF;
  margin-bottom: 10px;
}
.meet-modal-header h2 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.meet-modal-header p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.meet-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meet-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2px;
}
.meet-field input {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.meet-field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.meet-field input:focus {
  border-color: #007AFF;
  background: rgba(0, 122, 255, 0.06);
}
.meet-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 100, 100, 0.5);
}

.meet-modal-submit {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
.meet-modal-submit .submit-loading { display: none; }
.meet-modal-submit.is-loading .submit-label { display: none; }
.meet-modal-submit.is-loading .submit-loading { display: inline; }
.meet-modal-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.meet-modal-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff8f8f;
  font-size: 13px;
  line-height: 1.5;
}

.meet-modal-success {
  padding: 32px 16px;
  text-align: center;
}
.meet-modal-success .success-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #54E42B, #10A8B7);
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
  color: #0c1520;
  font-weight: 700;
}
.meet-modal-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.meet-modal-success p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.meet-modal-privacy {
  margin: 14px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.5;
}
.meet-modal-privacy a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

body.meet-modal-lock {
  overflow: hidden;
}

@media (max-width: 480px) {
  .meet-modal { padding: 16px; }
  .meet-modal-panel {
    padding: 36px 24px 24px;
    border-radius: 16px;
  }
  .meet-modal-header h2 { font-size: 24px; }
}

/* ============================================
   SAMPLE REPORT MODAL
   Reuses .meet-modal-panel (and children) for
   the inner card; only the wrapper/backdrop
   need their own positioning rules.
   ============================================ */

.report-modal[hidden] { display: none; }

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.report-modal.is-open { opacity: 1; }

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 21, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
  .report-modal { padding: 16px; }
}
