/* ── Auth Modal ─────────────────────────────────────────────────────────────── */

.aam-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: aam-fade-in 0.15s ease;
}

@keyframes aam-fade-in { from { opacity: 0 } to { opacity: 1 } }

.aam-box {
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  width: 100%; max-width: 440px;
  padding: 40px 36px 36px;
  position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: aam-slide-up 0.18s ease;
}

@keyframes aam-slide-up {
  from { transform: translateY(12px); opacity: 0 }
  to   { transform: translateY(0);    opacity: 1 }
}

/* ── Close button ─────────────────────────────────────────────────────────── */

.aam-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #6b7280; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: background 0.12s;
}
.aam-x:hover { background: #f3f4f6; color: #111827; }

/* ── Common elements ─────────────────────────────────────────────────────── */

.aam-logo { margin-bottom: 20px; }

.aam-h2 {
  font-size: 22px; font-weight: 700;
  color: #111827; margin: 0 0 8px; line-height: 1.3;
}

.aam-p {
  font-size: 14px; color: #6b7280; margin: 0 0 20px; line-height: 1.6;
}
.aam-p strong { color: #111827; }

.aam-err {
  font-size: 13px; color: #dc2626;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}

.aam-input {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  outline: none; margin-bottom: 14px;
  transition: border-color 0.15s;
}
.aam-input:focus { border-color: #7b00d4; }
.aam-input-err { border-color: #dc2626 !important; }

.aam-btn-primary {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  background: #7b00d4; color: #fff;
  border: none; border-radius: 10px;
  transition: opacity 0.15s;
}
.aam-btn-primary:hover { opacity: 0.88; }

.aam-btn-secondary {
  width: 100%; padding: 11px; font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  background: none; color: #6b7280;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  margin-top: 10px; transition: border-color 0.15s, color 0.15s;
}
.aam-btn-secondary:hover { border-color: #7b00d4; color: #7b00d4; }

/* ── Sales contact form ──────────────────────────────────────────────────── */

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

.aam-field { display: flex; flex-direction: column; gap: 5px; }

.aam-label { font-size: 13px; font-weight: 600; color: #374151; }
.aam-req   { color: #dc2626; }

.aam-select {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  outline: none; background: #fff; cursor: pointer;
  appearance: none;
  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='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.15s;
}
.aam-select:focus { border-color: #7b00d4; }

.aam-textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  outline: none; resize: vertical; min-height: 80px;
  transition: border-color 0.15s;
}
.aam-textarea:focus { border-color: #7b00d4; }

.aam-form .aam-btn-primary { margin-top: 4px; }

/* ── Icon circle ─────────────────────────────────────────────────────────── */

.aam-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.aam-ok   { background: #f0fdf4; color: #16a34a; }
.aam-warn { background: #fffbeb; color: #d97706; }

/* ── 3 Options ───────────────────────────────────────────────────────────── */

.aam-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.aam-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid #e5e7eb; background: #fff;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit; text-align: left;
}
.aam-opt:hover { border-color: #7b00d4; background: #faf5ff; }

.aam-opt-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }

.aam-opt-text {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.aam-opt-text strong { font-size: 14px; font-weight: 600; color: #111827; }
.aam-opt-text span   { font-size: 12px; color: #6b7280; }

.aam-opt-arrow { font-size: 20px; color: #d1d5db; flex-shrink: 0; }
.aam-opt:hover .aam-opt-arrow { color: #7b00d4; }

/* ── Azure SSO ───────────────────────────────────────────────────────────── */

.aam-azure { margin: -40px -36px -36px; border-radius: 16px; overflow: hidden; }

.aam-azure-header {
  background: #0078d4; padding: 24px 32px 20px;
}

.aam-azure-body { padding: 28px 32px 32px; }

.aam-azure-title {
  font-size: 24px; font-weight: 300; color: #111827;
  margin: 0 0 6px; font-family: 'Segoe UI', sans-serif;
}

.aam-azure-email {
  font-size: 14px; color: #6b7280; margin: 0 0 22px;
}

.aam-azure-pw {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: none; border-bottom: 2px solid #e5e7eb;
  outline: none; margin-bottom: 6px;
  background: transparent;
}
.aam-azure-pw:focus { border-bottom-color: #0078d4; }

.aam-azure-forgot {
  display: block; font-size: 13px; color: #0078d4;
  text-decoration: none; margin-bottom: 24px;
}
.aam-azure-forgot:hover { text-decoration: underline; }

.aam-azure-btn {
  padding: 10px 24px; background: #0078d4; color: #fff;
  border: none; border-radius: 2px; font-size: 15px;
  font-family: inherit; cursor: pointer; font-weight: 400;
  transition: background 0.15s;
}
.aam-azure-btn:hover { background: #106ebe; }

.aam-azure-tos {
  font-size: 11px; color: #6b7280; margin-top: 20px;
}
.aam-azure-tos a { color: #0078d4; text-decoration: none; }

/* ── Google SSO ──────────────────────────────────────────────────────────── */

.aam-google {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.aam-google-logo { margin-bottom: 20px; }

.aam-google-h {
  font-size: 22px; font-weight: 400; color: #202124; margin: 0 0 4px;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

.aam-google-sub {
  font-size: 14px; color: #5f6368; margin: 0 0 24px;
}

.aam-google-account {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #dadce0; border-radius: 24px;
  padding: 8px 16px 8px 8px; margin-bottom: 24px;
  width: 100%; box-sizing: border-box; text-align: left;
}

.aam-google-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #7b00d4; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}

.aam-google-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aam-google-name { font-size: 14px; font-weight: 500; color: #202124; text-transform: capitalize; }
.aam-google-addr { font-size: 13px; color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aam-google-btn {
  width: 100%; padding: 11px; font-size: 14px; font-weight: 500;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background: #1a73e8; color: #fff; border: none; border-radius: 6px;
  cursor: pointer; transition: background 0.15s;
}
.aam-google-btn:hover { background: #1765cc; }

/* ── Calendly iframe ─────────────────────────────────────────────────────── */

.aam-box--wide { max-width: 700px; padding: 0; border-radius: 16px; overflow: hidden; }

.aam-box--wide .aam-x {
  position: absolute; top: 10px; right: 12px; z-index: 1;
  background: rgba(255,255,255,0.9);
}

.aam-calendly {
  display: block; width: 100%; height: 660px; border: none;
}
