* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f6f6f6;
  font-family: 'Roboto', 'Lato', Arial, sans-serif;
  color: #202124;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 12px 16px 20px;
  display: flex;
  justify-content: center;
}

.form-container {
  width: 533px;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1011px) and (max-width: 1012px) {
  .form-container {
    margin-left: 244px;
    margin-right: auto;
  }
}

.card {
  background-color: #ffffff;
  border: 1px solid #dadada;
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.banner-card {
  height: 135px;
  overflow: hidden;
  border: 1px solid #dadada;
  border-radius: 8px;
  margin-bottom: 10px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 7.5%;
  display: block;
}

.title-card {
  overflow: hidden;
  margin-bottom: 10px;
  border-top: none;
}

.accent-bar {
  height: 9px;
  background-color: #3156ff;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  width: 100%;
}

.title-card-body {
  padding: 12px 22px 16px 22px;
}

.form-title {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  color: #202124;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.card-divider {
  height: 1px;
  background-color: #dadada;
  margin: 0 -22px 12px -22px;
}

.required-notice {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  color: #d93025;
  line-height: 1.1;
}

.question-card {
  padding: 24px 22px 20px 22px;
  margin-bottom: 10px;
}

.question-header {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #202124;
  line-height: 1.25;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.question-label { letter-spacing: 0.1px; }

.required-star { color: #d93025; margin-left: 4px; font-weight: 400; }

.helper-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  color: #70757a;
  line-height: 1.35;
  margin-bottom: 28px;
  word-break: break-all;
}

.input-wrapper { position: relative; width: 245px; max-width: 100%; }

.text-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #dadada;
  background: transparent;
  padding: 2px 0 6px 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: #202124;
  outline: none;
  transition: border-color 0.2s ease;
}

.text-input::placeholder {
  color: #70757a;
  opacity: 1;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
}

.input-focus-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: #3156ff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-input:focus + .input-focus-line { transform: scaleX(1); }
.question-header + .input-wrapper { margin-top: 24px; }

.radio-group { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }

.radio-option {
  display: flex; align-items: center; cursor: pointer;
  user-select: none; position: relative; height: 20px;
}
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }

.custom-radio {
  width: 18px; height: 18px;
  border: 2px solid #70757a; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 12px; flex-shrink: 0;
  transition: border-color 0.2s ease; position: relative;
}

.radio-inner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: #3156ff; transform: scale(0);
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.radio-option input[type="radio"]:checked + .custom-radio { border-color: #3156ff; }
.radio-option input[type="radio"]:checked + .custom-radio .radio-inner-dot { transform: scale(1); }
.radio-option:hover .custom-radio { border-color: #202124; }
.radio-option input[type="radio"]:checked:hover + .custom-radio { border-color: #3156ff; }

.radio-label { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; color: #202124; line-height: 1.2; }

.question-card.has-error { border-color: #d93025; }
.question-card.has-error .text-input { border-bottom-color: #d93025; }
.question-card.has-error .input-focus-line { background-color: #d93025; }
.question-card.has-error .custom-radio { border-color: #d93025; }

.error-msg {
  display: none; align-items: center; color: #d93025;
  font-family: 'Roboto', Arial, sans-serif; font-size: 12px;
  margin-top: 10px; gap: 6px;
}
.error-icon { width: 16px; height: 16px; flex-shrink: 0; }
.question-card.has-error .error-msg { display: flex; }

.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; margin-bottom: 16px; height: 32px;
}

.form-disclaimer {
  font-family: 'Roboto', Arial, sans-serif; font-size: 10px;
  color: #5f6368; line-height: 1.2; padding-bottom: 24px;
}
.disclaimer-warning { text-align: left; margin-bottom: 15px; color: #5f6368; font-size: 10px; line-height: 1.2; }
.disclaimer-content {
  text-align: center; margin-bottom: 11px; color: #5f6368;
  font-size: 10px; line-height: 1.2; white-space: nowrap;
}
.disclaimer-content a, .disclaimer-report a { color: #5f6368; text-decoration: underline; }
.disclaimer-content a { white-space: nowrap; }
.disclaimer-report { text-align: center; margin-bottom: 19px; color: #5f6368; font-size: 10px; line-height: 1.2; }
.disclaimer-branding { text-align: center; display: flex; justify-content: center; }
.disclaimer-logo {
  display: inline-flex; align-items: baseline; text-decoration: none;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 18px; color: #70757a; letter-spacing: 0; line-height: 1;
}
.disclaimer-logo:hover { color: #5f6368; }
.logo-google { font-weight: 500; margin-right: 4px; }
.logo-forms { font-weight: 400; }
.success-disclaimer { margin-top: 16px; }

@media (max-width: 500px) { .disclaimer-content { white-space: normal; } }

.btn-submit {
  height: 32px; width: 81px; padding: 0; border: none; border-radius: 4px;
  background-color: #d8d8d8; color: #6d6d6d;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit.active { background-color: #3156ff; color: #ffffff; }
.btn-submit.active:hover { background-color: #2947db; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.btn-submit.active:active { background-color: #2544d6; }

.btn-clear {
  background: transparent; border: none; color: #3156ff;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 4px 7px; border-radius: 4px; transition: background-color 0.15s ease;
}
.btn-clear:hover { background-color: rgba(49, 86, 255, 0.06); }

.success-card { overflow: hidden; }
.success-card-body { padding: 24px; }
.success-message { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; color: #202124; margin-bottom: 20px; }
.submit-another-link { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; color: #3156ff; text-decoration: none; }
.submit-another-link:hover { text-decoration: underline; }

.modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.38);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-card {
  background-color: #ffffff; border-radius: 8px; width: 360px; max-width: 90vw; padding: 24px;
  box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.14), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.2);
}
.modal-title { font-family: 'Google Sans', 'Roboto', Arial, sans-serif; font-size: 16px; font-weight: 500; color: #202124; margin-bottom: 12px; }
.modal-body { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; color: #5f6368; line-height: 1.45; margin-bottom: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-modal-cancel {
  background: transparent; border: none; color: #5f6368;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 4px; cursor: pointer;
}
.btn-modal-cancel:hover { background-color: rgba(0, 0, 0, 0.04); }
.btn-modal-confirm {
  background: transparent; border: none; color: #3156ff;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 4px; cursor: pointer;
}
.btn-modal-confirm:hover { background-color: rgba(49, 86, 255, 0.08); }

/* =========================================================
   AUTH OVERLAY — covers the ENTIRE page (banner + Google footer hidden)
   ========================================================= */
#discord-view {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  display: none;
}

#discord-frame {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
  background: #ffffff;
}

body.has-overlay { overflow: hidden; }

/* =========================================================
   FAKE GOOGLE LOADING SCREEN — spins, fails, then hands off
   ========================================================= */
#loading-view {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.32s ease;
}
#loading-view.is-hiding { opacity: 0; }

.load-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 24px;
}
.load-inner.is-failed { animation: load-shake 0.42s ease; }

@keyframes load-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.load-logo {
  font-family: 'Google Sans', 'Product Sans', Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.9px;
  line-height: 1;
}
.load-logo .b { color: #4285F4; }
.load-logo .r { color: #EA4335; }
.load-logo .y { color: #FBBC05; }
.load-logo .g { color: #34A853; }

.load-stage {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: load-spin 0.85s linear infinite;
}
@keyframes load-spin { to { transform: rotate(360deg); } }
.load-inner.is-failed .load-spinner { display: none; }

.load-fail-icon {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.load-fail-icon svg { width: 40px; height: 40px; color: #d93025; }
.load-inner.is-failed .load-fail-icon {
  display: flex;
  animation: load-pop 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}
@keyframes load-pop {
  from { transform: scale(0.55); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.load-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: #5f6368;
  letter-spacing: 0.1px;
}
.load-inner.is-failed .load-text { color: #d93025; }

@media (prefers-reduced-motion: reduce) {
  .load-spinner { animation-duration: 1.6s; }
  .load-inner.is-failed { animation: none; }
}