/* ============================================================
   BTS COM Access Manager — Modal Styles v2.0.0
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
#btscom-overlay,
#btscom-modal,
#btscom-modal * {
  box-sizing: border-box;
}

/* ── Overlay ────────────────────────────────────────────────── */
#btscom-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: btscom-fade-in 0.25s ease forwards;
}

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

/* ── Modal card ─────────────────────────────────────────────── */
#btscom-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: btscom-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ── Close button ───────────────────────────────────────────── */
#btscom-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f0f0f4;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  padding: 0;
}
#btscom-close:hover {
  background: #e0e0e8;
  color: #333;
}

/* ── Logo ───────────────────────────────────────────────────── */
#btscom-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
#btscom-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Heading ────────────────────────────────────────────────── */
#btscom-modal-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.3px;
  color: #1a1a2e;
}

/* ── Error banner ───────────────────────────────────────────── */
#btscom-error-banner {
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  color: #b91c1c;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 14px 0;
  text-align: left;
}

/* ── Intro text ─────────────────────────────────────────────── */
#btscom-intro {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin: 10px 0 20px;
  line-height: 1.6;
}

/* ── Google button ──────────────────────────────────────────── */
#btscom-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: #4285F4;
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}
#btscom-google-btn:hover {
  background: #3367d6;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.45);
  transform: translateY(-1px);
}
#btscom-google-btn:active {
  transform: translateY(0);
}

/* ── Divider ────────────────────────────────────────────────── */
#btscom-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #bbb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
#btscom-divider::before,
#btscom-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8ec;
}

/* ── Form heading ───────────────────────────────────────────── */
#btscom-form-heading {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0 0 16px;
}

/* ── Form ───────────────────────────────────────────────────── */
#btscom-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#btscom-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  display: block;
}

#btscom-form input,
#btscom-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e0e0e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.18s, box-shadow 0.18s;
  margin-bottom: 14px;
  outline: none;
  -webkit-appearance: none;
}
#btscom-form input:focus,
#btscom-form textarea:focus {
  border-color: #4285F4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}
#btscom-form input.btscom-error,
#btscom-form textarea.btscom-error {
  border-color: #dc2626;
}

#btscom-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Submit button ──────────────────────────────────────────── */
#btscom-submit {
  width: 100%;
  padding: 12px;
  background: #1a1a2e;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  font-family: inherit;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.2);
}
#btscom-submit:hover:not(:disabled) {
  background: #2d2d4e;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.3);
  transform: translateY(-1px);
}
#btscom-submit:active:not(:disabled) {
  transform: translateY(0);
}
#btscom-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Status message ─────────────────────────────────────────── */
#btscom-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
#btscom-status.btscom-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
#btscom-status.btscom-fail {
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  color: #b91c1c;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  #btscom-modal {
    padding: 36px 24px 28px;
    border-radius: 16px;
  }
}
