/* Charlotte Sign Studio — Customer Portal CSS
 * Extracted from CustomerPortal_UI/src/Index.html <style> block.
 * Only classes used by the six in-scope screens are included.
 */

:root {
  --brand-gold: #FFD700;
  --brand-dark-slate: #1C262B;
  --brand-muted-gray: #5f6368;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #f8f9fa;
  color: #1C262B;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px;
}

/* Shell containers */
.portal-shell {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Card */
.portal-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Brand header */
.portal-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f3f4;
}
.portal-brand img { width: 140px; height: auto; }
.portal-brand-compact {
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.brand-sub { font-size: 20px; font-weight: 600; color: #1C262B; }
@media (max-width: 640px) {
  .portal-brand img { width: 70px; }
  .brand-sub { font-size: 16px; }
}

/* Spinner */
.portal-spinner-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 0;
}
.portal-spinner {
  width: 36px; height: 36px;
  border: 3px solid #f1f3f4;
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin_ 0.8s linear infinite;
}
@keyframes spin_ { to { transform: rotate(360deg); } }
.spinner-label { font-size: 15px; font-weight: 500; color: #5f6368; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 15px; font-weight: 600;
  border-radius: 6px; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  background: #FFD700; color: #1C262B;
  width: 100%; margin-top: 16px;
}
.btn:hover:not(:disabled) { background: #e6c200; }
.btn:disabled { background: #f1f3f4; color: #a8abaf; cursor: not-allowed; opacity: 1; border: none; }

.btn-approve {
  background: #0f9d58; color: #fff;
}
.btn-approve:hover:not(:disabled) { background: #0b8a4c; }
.btn-approve:disabled { background: #f1f3f4; color: #a8abaf; cursor: not-allowed; opacity: 1; border: none; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 15px; font-weight: 600;
  border-radius: 6px; border: 1px solid #f4b400; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  background: #fff3cd; color: #7a4a00;
}
.btn-secondary:hover:not(:disabled) { background: #ffe8a1; }
.btn-secondary:disabled { background: #f1f3f4; color: #a8abaf; border-color: #dadce0; cursor: not-allowed; opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 15px; font-weight: 600;
  border-radius: 6px; border: 1px solid #dadce0; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  background: transparent; color: #5f6368;
}
.btn-outline:hover { background: #f1f3f4; }

/* Error screen */
.error-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin: 0 auto 16px auto;
}
.error-title {
  font-size: 18px; font-weight: 600; color: #1C262B;
  text-align: center; margin-bottom: 10px;
}
.error-message-box {
  font-size: 15px; font-weight: 500; color: #5f6368; line-height: 1.6;
  text-align: center; margin-bottom: 20px;
}
.contact-prompt {
  font-size: 14px; color: #5f6368; text-align: center; line-height: 1.6;
}
.contact-link { color: #1a73e8; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.text-error { color: #d93025; }

/* Estimate portal layout */
.ep-shell { width: 100%; max-width: 1080px; margin: 0 auto; }
.ep-layout { display: flex; flex-direction: column; gap: 16px; }
.ep-left { min-width: 0; }
.ep-right { min-width: 0; }
@media (min-width: 768px) {
  .ep-layout { flex-direction: row; align-items: flex-start; gap: 24px; }
  .ep-left { flex: 1.2; }
  .ep-right { width: 360px; flex-shrink: 0; }
  .ep-right-sticky { position: sticky; top: 24px; }
}
.ep-deposit-hero-wrap {
  text-align: center; padding: 16px 0 12px;
  border-bottom: 1px solid #f1f3f4; margin-bottom: 12px;
}
.ep-deposit-label {
  font-size: 11px; font-weight: 700; color: #5f6368;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px;
}
.ep-deposit-hero-amount { font-size: 38px; font-weight: 700; color: #1C262B; line-height: 1.1; }
.ep-pricing-sub { display: flex; flex-direction: column; gap: 6px; }
.ep-pricing-sub-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #5f6368; font-weight: 500;
}
.ep-payment-card {
  width: 100%; padding: 14px 16px;
  background: #fff; border: 2px solid #dadce0; border-radius: 8px;
  cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; gap: 14px;
  font-family: 'Montserrat', sans-serif;
}
.ep-payment-card:disabled { cursor: default; }
.ep-radio {
  width: 18px; height: 18px; border: 2px solid #9aa0a6; border-radius: 50%;
  flex-shrink: 0; margin-top: 3px; box-sizing: border-box;
}

/* Mobile sticky payment bar */
.ep-mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid #e8eaed;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
}
.ep-mobile-sticky-inner { max-width: 480px; margin: 0 auto; }
.ep-sticky-label {
  font-size: 12px; font-weight: 600; color: #5f6368;
  text-align: center; margin-bottom: 6px; margin-top: 0;
}
/* Hide sticky bar on desktop; hide desktop CTA on mobile */
@media (min-width: 768px) {
  .ep-mobile-sticky { display: none !important; }
}
@media (max-width: 767px) {
  #ep-cta-wrap { display: none !important; }
  #screen-estimate { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  #ep-mockup-img { max-height: 160px !important; }
}

/* T&C checkbox row (new for Firebase portal — no equivalent in GAS source) */
.tc-accept-row {
  font-size: 13px;
  font-weight: 500;
  color: #1C262B;
  line-height: 1.5;
}

/* Deposit payment success screen */
.dps-shell { max-width: 520px; margin: 0 auto; }
.dps-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e6b800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; margin: 0 auto 20px;
}
.dps-title { font-size: 22px; font-weight: 700; color: #1C262B; text-align: center; margin-bottom: 6px; }
.dps-subtitle { font-size: 15px; color: #5f6368; text-align: center; margin-bottom: 24px; line-height: 1.5; }
.dps-summary {
  background: #f8f9fa; border: 1px solid #e8eaed; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 20px;
}
.dps-summary-sign { font-size: 15px; font-weight: 700; color: #1C262B; margin-bottom: 12px; }
.dps-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: #1C262B; padding: 6px 0;
  border-top: 1px solid #e8eaed;
}
.dps-summary-row span:last-child { font-weight: 600; }
.dps-balance-note { font-size: 12px; color: #5f6368; text-align: right; margin-top: 4px; }
.dps-actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.dps-actions a { flex: 1; min-width: 140px; text-align: center; text-decoration: none; }
.dps-next { margin-bottom: 28px; }
.dps-next-title { font-size: 13px; font-weight: 700; color: #5f6368; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.dps-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: #1C262B; margin-bottom: 12px; line-height: 1.5;
}
.dps-step-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e6b800;
  flex-shrink: 0; margin-top: 6px;
}
.dps-contact {
  border-top: 1px solid #e8eaed; padding-top: 20px;
}
.dps-contact-title { font-size: 13px; font-weight: 700; color: #5f6368; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.dps-contact-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1C262B; margin-bottom: 8px; }
.dps-contact-row a { color: #1a73e8; text-decoration: none; }
.dps-contact-row a:hover { text-decoration: underline; }
.dps-contact-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

/* Mobile overrides */
@media (max-width: 600px) {
  .portal-shell { max-width: 100%; }
  body { padding: 0; align-items: flex-start; }
  .portal-card { padding: 24px 18px 20px; border-radius: 0; border-left: none; border-right: none; }
  .error-title { font-size: 20px; }
  .error-message-box { font-size: 15px; }
  .contact-prompt { font-size: 13px; }
  .btn { font-size: 18px; min-height: 48px; padding: 12px 20px; }
  .btn-secondary { font-size: 18px; min-height: 48px; }
  .btn-outline { font-size: 15px; min-height: 44px; padding: 10px 16px; }
}
