/* Growth Features CSS */

/* ================================
   EMAIL CAPTURE MODAL
   ================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--abode-white);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.visible .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--abode-text-muted);
  padding: 4px;
}

.modal-close:hover {
  color: var(--abode-text-dark);
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: var(--abode-green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-icon svg {
  color: var(--abode-green);
}

.modal h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--abode-text-dark);
  margin-bottom: 8px;
}

.modal p {
  color: var(--abode-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--abode-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--abode-cream);
}

.modal-form input[type="email"]:focus {
  outline: none;
  border-color: var(--abode-focus, #6679F2);
  background: var(--abode-white);
}

.modal-form button {
  width: 100%;
  padding: 12px 20px;
  background: var(--abode-green);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-form button:hover {
  background: var(--abode-green-hover);
}

.modal-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success svg {
  color: var(--abode-green);
  margin-bottom: 12px;
}

.modal-disclaimer {
  font-size: 11px;
  color: var(--abode-text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ================================
   SHARE BUTTONS
   ================================ */
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--abode-border);
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--abode-border);
  background: var(--abode-cream);
  color: var(--abode-text);
}

.share-btn:hover {
  background: var(--abode-cream-dark);
  border-color: var(--abode-green);
}

.share-btn.twitter {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #1a91da;
}

.share-btn.facebook {
  background: #4267B2;
  border-color: #4267B2;
  color: white;
}

.share-btn.facebook:hover {
  background: #375695;
}

.share-btn.copy {
  background: var(--abode-green);
  border-color: var(--abode-green);
  color: white;
}

.share-btn.copy:hover {
  background: var(--abode-green-hover);
}

.share-btn.copied {
  background: #10b981;
  border-color: #10b981;
}

/* ================================
   SAVINGS CALCULATOR (Enhanced)
   ================================ */
.savings-highlight {
  background: var(--abode-moss-50, #E7FAD8);
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.savings-highlight .amount {
  font-size: 32px;
  font-weight: 500;
  color: var(--abode-green);
  display: block;
}

.savings-highlight .label {
  font-size: 13px;
  color: var(--abode-text);
  margin-top: 4px;
}

.savings-breakdown {
  background: var(--abode-cream);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

.savings-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.savings-row:not(:last-child) {
  border-bottom: 1px dashed var(--abode-border);
}

.savings-row .label {
  color: var(--abode-text-muted);
}

.savings-row .value {
  font-weight: 500;
  color: var(--abode-text-dark);
}

.savings-row.total {
  border-top: 2px solid var(--abode-green);
  margin-top: 8px;
  padding-top: 12px;
}

.savings-row.total .value {
  color: var(--abode-green);
  font-size: 16px;
}

/* ================================
   COUNTY COMPARISON
   ================================ */
.comparison-card {
  background: var(--abode-cream);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid var(--abode-border);
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comparison-header h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--abode-text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-bar {
  height: 8px;
  background: var(--abode-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.comparison-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.comparison-bar-fill.low { background: #10b981; }
.comparison-bar-fill.medium { background: #f59e0b; }
.comparison-bar-fill.high { background: rgb(164, 30, 30); }

.comparison-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.comparison-stat {
  padding: 8px;
  background: var(--abode-white);
  border-radius: 8px;
}

.comparison-stat .value {
  font-size: 16px;
  font-weight: 500;
  color: var(--abode-text-dark);
}

.comparison-stat .label {
  font-size: 10px;
  color: var(--abode-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-stat.highlight .value {
  color: var(--abode-green);
}

/* ================================
   DEADLINE ALERT BANNER
   ================================ */
.deadline-alert {
  position: relative;
  background: var(--abode-white);
  border: 1px solid var(--abode-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.deadline-alert::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d97756, #f5c242, #054E04, #3b82f6, #8b5cf6, #d97756);
  background-size: 200% 100%;
  animation: gradient-trace 3s linear infinite;
}

@keyframes gradient-trace {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.deadline-alert.urgent::after {
  background: linear-gradient(90deg, rgb(164, 30, 30), #f59e0b, rgb(164, 30, 30), #f59e0b, rgb(164, 30, 30));
  background-size: 200% 100%;
  animation: gradient-trace 2s linear infinite;
}

.deadline-alert.passed::after {
  background: var(--abode-border-dark);
  animation: none;
}

.deadline-alert-icon {
  display: none;
}

.deadline-alert-content {
  margin-bottom: 0;
}

.deadline-alert-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--abode-text-dark);
  line-height: 1.4;
}

.deadline-alert-text {
  font-size: 12px;
  color: var(--abode-text-muted);
  margin-top: 2px;
}

.deadline-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-top: 8px;
  background: none;
  color: var(--abode-green);
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: gap 0.15s;
}

.deadline-alert-btn::after {
  content: '\2192';
}

.deadline-alert-btn:hover {
  gap: 8px;
  background: none;
  text-decoration: underline;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
  background: var(--abode-green);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  text-align: center;
  color: white;
}

.cta-section h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.cta-section .cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: var(--abode-green);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-section .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ================================
   EMBED WIDGET STYLES
   ================================ */
.embed-widget {
  font-family: 'Aeonik', system-ui, sans-serif;
  max-width: 400px;
  background: var(--abode-white);
  border-radius: 12px;
  border: 1px solid var(--abode-border);
  overflow: hidden;
}

.embed-header {
  background: var(--abode-green);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.embed-header a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
}

.embed-header a:hover {
  opacity: 1;
}

.embed-content {
  padding: 16px;
}

.embed-powered {
  text-align: center;
  padding: 8px;
  background: var(--abode-cream);
  font-size: 11px;
  color: var(--abode-text-muted);
}

.embed-powered a {
  color: var(--abode-green);
  text-decoration: none;
  font-weight: 500;
}

/* ================================
   NOTIFICATION TOAST
   ================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--abode-text-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1001;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #10b981;
}

.toast.error {
  background: rgb(164, 30, 30);
}

/* ================================
   SAVINGS HOOK CARD
   ================================ */
.savings-hook {
  background: rgba(5, 78, 4, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  text-align: center;
}

.savings-hook-eyebrow {
  font-size: 12px;
  color: var(--abode-text-muted);
  margin-bottom: 4px;
}

.savings-hook-amount {
  font-size: 32px;
  font-weight: 500;
  color: #054E04;
  line-height: 1.1;
}

.savings-hook-period {
  font-size: 13px;
  color: #054E04;
  font-weight: 500;
  margin-bottom: 8px;
}

.savings-hook-basis {
  font-size: 11px;
  color: var(--abode-text-muted);
  line-height: 1.4;
}

.savings-hook.rate-hook .savings-hook-amount {
  font-size: 24px;
}

/* ================================
   DEADLINE COUNTDOWN
   ================================ */
.countdown-card {
  background: var(--abode-white);
  border: 1px solid var(--abode-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--abode-green);
}

.countdown-card.urgent::after {
  background: linear-gradient(90deg, rgb(164, 30, 30), #f59e0b, rgb(164, 30, 30));
  background-size: 200% 100%;
  animation: gradient-trace 2s linear infinite;
}

.countdown-card.soon::after {
  background: #f59e0b;
}

.countdown-card.passed {
  opacity: 0.7;
}

.countdown-card.passed::after {
  background: var(--abode-border-dark);
}

.countdown-number {
  font-size: 42px;
  font-weight: 500;
  color: #054E04;
  line-height: 1;
}

.countdown-card.urgent .countdown-number {
  color: rgb(164, 30, 30);
}

.countdown-card.soon .countdown-number {
  color: #b45309;
}

.countdown-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--abode-text);
  margin-top: 2px;
}

.countdown-date {
  font-size: 12px;
  color: var(--abode-text-muted);
  margin-top: 4px;
}

/* ================================
   ADDRESS INPUT CARD
   ================================ */
.address-input-card {
  background: var(--abode-cream);
  border: 2px dashed rgba(5, 78, 4, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.address-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--abode-text-dark);
  margin-bottom: 8px;
}

.address-input-form {
  display: flex;
  gap: 8px;
}

.address-input-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--abode-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--abode-white);
}

.address-input-form input:focus {
  outline: none;
  border-color: var(--abode-focus, #6679F2);
  box-shadow: 0 0 0 3px rgba(102, 121, 242, 0.15);
}

.address-input-form button {
  padding: 10px 16px;
  background: var(--abode-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.address-input-form button:hover {
  background: var(--abode-green-hover);
}

/* ================================
   SOCIAL PROOF
   ================================ */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--abode-text-muted);
  margin-bottom: 12px;
  padding: 8px 0;
}

/* ================================
   DETAILS SECTIONS
   ================================ */
.sidebar-details {
  margin-bottom: 8px;
}

.sidebar-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--abode-text-muted);
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-details summary::-webkit-details-marker {
  display: none;
}

.sidebar-details summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--abode-border-dark);
  transition: transform 0.15s;
}

.sidebar-details[open] summary::after {
  content: '-';
}

.sidebar-details-content {
  padding-bottom: 8px;
}
