/* Site Review Page Styles - Theme Support */
:root {
  --gold: #f2b705;
  --gold-dark: #c98a00;
  --amber: #f5d061;
  --charcoal: #1e1f24;
  --white: #ffffff;

  /* Dark mode (default) */
  --bg-primary: #0f1014;
  --bg-secondary: #1a1b23;
  --bg-tertiary: #16171f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-input: rgba(255, 255, 255, 0.08);
  --error-color: #ef4444;
  --success-color: #10b981;
}

[data-theme="light"] {
  /* Light mode */
  --bg-primary: #e8e9ea;
  --bg-secondary: #f0f1f2;
  --bg-tertiary: #d8d9da;
  --bg-card: rgba(240, 241, 242, 0.95);
  --bg-input: rgba(0, 0, 0, 0.03);
  --text-primary: #2a2b35;
  --text-secondary: rgba(42, 43, 53, 0.7);
  --text-tertiary: rgba(42, 43, 53, 0.5);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-input: rgba(0, 0, 0, 0.08);
  --error-color: #dc2626;
  --success-color: #059669;
}

/* NAPBOX Information Section */
.napbox-info-section {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}

/* Pricing Summary Section */
.pricing-summary-section {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}

/* Reduce margin-bottom of Preferred Plan form-group to bring it closer to Pricing Summary */
.form-group.preferred-plan-group {
  margin-bottom: 0.5rem;
}

.pricing-summary-header {
  margin-bottom: 1rem;
}

.pricing-summary-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pricing-summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-summary-item:last-child {
  border-bottom: none;
}

.pricing-summary-item.pricing-summary-total {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--border-color);
  border-bottom: none;
}

.pricing-summary-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pricing-summary-value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9375rem;
  text-align: right;
}

.napbox-info-header {
  margin-bottom: 1rem;
}

.napbox-info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.napbox-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.napbox-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.napbox-info-item:last-child {
  border-bottom: none;
}

.napbox-info-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.napbox-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* NAPBOX Marker Styles - using same structure as main map markers */
.napbox-marker-active .marker-pulse {
  background: rgba(0, 212, 255, 0.3);
  border: 2px solid rgba(0, 212, 255, 0.5);
}

/* Full NAPBOX marker (red color) */
.napbox-marker-active.napbox-full .marker-pulse {
  background: rgba(239, 68, 68, 0.3);
  border: 2px solid rgba(239, 68, 68, 0.5);
}

.napbox-popup {
  min-width: 200px;
}

.napbox-popup h4 {
  color: var(--text-primary);
  font-family: "Space Grotesk", sans-serif;
}

.napbox-popup p {
  color: var(--text-secondary);
  margin: 0.25rem 0;
}

/* Route Line Styles */
.route-distance-label {
  background: transparent !important;
  border: none !important;
  text-align: center;
}

.route-distance-badge {
  background: rgba(0, 212, 255, 0.9);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  font-family: "Space Grotesk", sans-serif;
  text-align: center;
}

/* Auth Header Styles */
.auth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .auth-header {
  background: rgba(240, 241, 242, 0.9);
}

.auth-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.auth-logo:hover {
  opacity: 0.8;
}

.auth-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(242, 183, 5, 0.3));
}

.auth-company-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-input);
  border-color: var(--gold);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-light {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Site Review Page */
.site-review-page {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 4rem;
}

.site-review-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-review-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.site-review-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.site-review-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--amber) 100%);
  border-radius: 2px;
}

.site-review-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

/* Form */
.site-review-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Address fields grid - responsive */
.address-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Mobile responsive - stack address fields on mobile */
@media screen and (max-width: 768px) {
  .address-fields-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.required {
  color: var(--error-color);
}

/* Date Input Wrapper */
.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-icon {
  position: absolute;
  left: 1rem;
  z-index: 1;
  pointer-events: none;
  transition: color 0.3s ease;
}

/* Dark mode - white icon */
.date-icon {
  color: var(--white);
}

/* Light mode - black icon */
[data-theme="light"] .date-icon {
  color: #2a2b35;
}

.date-input {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
  position: relative;
}

.date-input-wrapper:focus-within .date-icon {
  color: var(--gold);
}

/* Style the native date picker icon (calendar icon) */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: brightness(0) invert(1); /* White in dark mode (default) */
  transition: filter 0.3s ease;
  margin-right: 0.5rem; /* Default spacing */
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: brightness(0) invert(1); /* White in dark mode (default) */
  transition: filter 0.3s ease;
  margin-right: 0.5rem; /* Default spacing */
}

/* Light mode - black date picker icon */
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(0); /* Black in light mode */
}

[data-theme="light"] .date-input::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(0); /* Black in light mode */
}

/* Focus state - gold date picker icon */
input[type="date"]:focus::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(77%) sepia(95%) saturate(1352%)
    hue-rotate(1deg) brightness(102%) contrast(96%);
}

.date-input:focus::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(77%) sepia(95%) saturate(1352%)
    hue-rotate(1deg) brightness(102%) contrast(96%);
}

/* For Firefox */
input[type="date"] {
  color-scheme: dark; /* Default to dark */
}

.date-input {
  color-scheme: dark; /* Default to dark */
}

[data-theme="light"] input[type="date"] {
  color-scheme: light;
}

[data-theme="light"] .date-input {
  color-scheme: light;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Select dropdown styling */
select.form-input,
select.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px 12px !important;
  padding-right: 2.5rem;
  background-color: var(--bg-input) !important;
}

[data-theme="light"] select.form-input,
[data-theme="light"] select.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232a2b35' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px 12px !important;
  background-color: var(--bg-input) !important;
}

/* Dropdown options styling - Dark theme */
select.form-input option,
select.form-select option {
  background: #1a1b23;
  color: #ffffff;
  padding: 0.5rem;
}

/* Light theme - options */
[data-theme="light"] select.form-input option,
[data-theme="light"] select.form-select option {
  background: #ffffff;
  color: #2a2b35;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}

/* Ensure select dropdown arrow remains visible on focus */
select.form-input:focus,
select.form-select:focus {
  background-color: var(--bg-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px 12px !important;
}

[data-theme="light"] select.form-input:focus,
[data-theme="light"] select.form-select:focus {
  background-color: var(--bg-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232a2b35' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px 12px !important;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  display: block;
  font-size: 0.875rem;
  color: var(--error-color);
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

/* Map Search Container */
.map-search-container {
  margin-bottom: 1rem;
}

.map-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.map-search-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}

.search-icon {
  color: var(--text-tertiary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.map-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.map-search-input::placeholder {
  color: var(--text-tertiary);
}

.map-search-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clear-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Map Container */
.map-container {
  margin-top: 0.5rem;
  position: relative;
}

/* Map Loading Overlay */
.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-loading-overlay.show {
  display: flex;
  opacity: 1;
}

.map-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinRing 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: var(--amber);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  border-top-color: rgba(242, 183, 5, 0.3);
  animation-duration: 2s;
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.map-loading-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.7);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 20px 10px rgba(242, 183, 5, 0);
  }
}

.map-loading-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.map-loading-subtext {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: -0.5rem;
}

[data-theme="light"] .map-loading-overlay {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .map-loading-content {
  background: rgba(240, 241, 242, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .map-loading-text {
  color: var(--text-primary);
}

[data-theme="light"] .map-loading-subtext {
  color: var(--text-secondary);
}

.map-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-input);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  transition: border-color 0.3s ease, border-radius 0.3s ease;
  position: relative;
}

/* Fullscreen Button - Positioned inside map-wrapper */
.map-wrapper .fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-wrapper .fullscreen-btn:hover {
  background: rgba(242, 183, 5, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}

.map-wrapper .fullscreen-btn:active {
  transform: scale(0.95);
}

.map-wrapper .fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

.map-wrapper .fullscreen-btn .fullscreen-exit-icon {
  display: none;
}

.map-wrapper .fullscreen-btn.fullscreen-active .fullscreen-icon {
  display: none;
}

.map-wrapper .fullscreen-btn.fullscreen-active .fullscreen-exit-icon {
  display: block !important;
}

/* Pin Location Button */
.map-wrapper .pin-location-btn {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-wrapper .pin-location-btn:hover {
  background: rgba(242, 183, 5, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}

.map-wrapper .pin-location-btn:active {
  transform: scale(0.95);
}

.map-wrapper .pin-location-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.map-wrapper .pin-location-btn:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.map-wrapper .pin-location-btn svg {
  width: 20px;
  height: 20px;
}

.map-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  border: none;
}

.map-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}

/* Map Instructions Container - Minimalistic Design */
.map-instructions-container {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1rem;
}

.map-instructions-icon {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.125rem;
}

.map-instructions-text {
  flex: 1;
}

.map-instructions-main {
  margin: 0 0 0.125rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.map-instructions-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .map-instructions-main {
    font-size: 0.8125rem;
  }

  .map-instructions-note {
    font-size: 0.75rem;
  }
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 2000 !important;
  font-family: "Poppins", sans-serif;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pac-container .pac-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.pac-container .pac-item:hover {
  background-color: rgba(242, 183, 5, 0.1);
}

/* Dark mode dropdown */
.pac-container {
  background-color: #1a1b23;
  color: #ffffff;
}

/* Ensure text inside suggestions is white in dark mode */
.pac-container .pac-item,
.pac-container .pac-item span,
.pac-container .pac-item .pac-item-query {
  color: #ffffff !important;
}

/* Light mode dropdown */
[data-theme="light"] .pac-container {
  background-color: #ffffff;
  color: #2a2b35;
}

/* Light mode text color for suggestions */
[data-theme="light"] .pac-container .pac-item,
[data-theme="light"] .pac-container .pac-item span,
[data-theme="light"] .pac-container .pac-item .pac-item-query {
  color: #2a2b35 !important;
}

/* Leaflet Map Customization - Matching index.php style */
.leaflet-container {
  background: #1a1c22;
  font-family: "Poppins", sans-serif;
  border-radius: 1.5rem;
  z-index: 1;
}

/* Ensure all Leaflet SVG elements stay below header */
.leaflet-container svg,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow,
.leaflet-container .leaflet-popup,
.leaflet-container .leaflet-tile-container,
.leaflet-container .leaflet-overlay-pane,
.leaflet-container .leaflet-marker-pane,
.leaflet-container .leaflet-popup-pane {
  z-index: 999 !important;
}

/* Custom Pin Marker */
.custom-pin-marker {
  background: transparent;
  border: none;
}

.pin-container {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: pinBounce 0.6s ease;
}

@keyframes pinBounce {
  0% {
    transform: scale(0) translateY(-20px);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Leaflet Controls Styling - Matching index.php */
.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.5rem !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: var(--white) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  font-weight: 600;
}

.leaflet-control-zoom a:hover {
  background: rgba(242, 183, 5, 0.2) !important;
  color: var(--gold) !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

/* Layer Control Styling */
.leaflet-control-layers {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.leaflet-control-layers-expanded {
  margin-top: 0.5rem !important;
}

.leaflet-control-layers-toggle {
  background: transparent !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.leaflet-control-layers-toggle:hover {
  background: rgba(242, 183, 5, 0.2) !important;
  border-color: var(--gold) !important;
  transform: scale(1.05);
}

.leaflet-control-layers-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: color 0.3s ease;
}

.leaflet-control-layers-toggle:hover svg {
  color: var(--gold);
}

.layer-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide any icons inside the expanded layer control container */
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none !important;
}

/* Ensure the toggle button only shows when collapsed */
.leaflet-control-layers:not(.leaflet-control-layers-expanded)
  .leaflet-control-layers-toggle {
  display: flex !important;
}

.leaflet-control-layers-expanded {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem !important;
  color: var(--text-primary) !important;
}

.leaflet-control-layers label {
  color: var(--text-primary) !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
}

.leaflet-control-layers label:hover {
  color: var(--gold) !important;
  transform: translateX(2px);
}

/* Light mode: always use white text */
[data-theme="light"] .leaflet-control-layers label {
  color: #ffffff !important;
}

[data-theme="light"] .leaflet-control-layers label:hover {
  color: var(--gold) !important;
}

/* Dark mode: override for light maps - text should be dark */
[data-theme="dark"]
  .leaflet-control-layers-expanded[data-light-map="true"]
  label {
  color: #2a2b35 !important;
}

[data-theme="dark"]
  .leaflet-control-layers-expanded[data-light-map="true"]
  label:hover {
  color: var(--gold) !important;
}

.leaflet-control-layers input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Popup Styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-tip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
}

.leaflet-popup-close-button {
  color: var(--text-primary) !important;
  font-size: 20px !important;
  padding: 0.5rem !important;
  transition: color 0.3s ease;
}

.leaflet-popup-close-button:hover {
  color: var(--gold) !important;
}

/* Location Popup Styling */
.location-popup {
  font-family: "Poppins", sans-serif;
  min-width: 200px;
}

.location-popup h4 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.location-popup p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}

.leaflet-popup-tip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* Form Actions */
.form-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 3rem;
  min-width: 200px;
  min-height: 56px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--charcoal);
  border: none;
  border-radius: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(242, 183, 5, 0.25),
    0 2px 5px rgba(242, 183, 5, 0.15);
  overflow: hidden;
  letter-spacing: 0.02em;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(242, 183, 5, 0.35),
    0 4px 10px rgba(242, 183, 5, 0.2);
  background: linear-gradient(135deg, var(--amber) 0%, var(--gold) 100%);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(242, 183, 5, 0.3),
    0 2px 5px rgba(242, 183, 5, 0.15);
}

.submit-btn:focus-visible {
  outline: 3px solid rgba(242, 183, 5, 0.5);
  outline-offset: 3px;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(242, 183, 5, 0.15);
}

.submit-btn:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(242, 183, 5, 0.15);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.submit-btn:hover:not(:disabled) .btn-icon {
  transform: translateX(2px) rotate(5deg);
}

.submit-btn:active:not(:disabled) .btn-icon {
  transform: translateX(0) rotate(0deg);
}

.btn-text {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.submit-btn:hover:not(:disabled) .btn-text {
  transform: translateX(2px);
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.submit-btn.loading .btn-icon,
.submit-btn.loading .btn-text {
  opacity: 0;
  visibility: hidden;
}

.submit-btn.loading .btn-loader {
  display: inline-flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* POI Markers */
.poi-marker {
  background: transparent;
  border: none;
  cursor: pointer;
}

.poi-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.poi-marker:hover .poi-icon-container {
  transform: scale(1.2);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* POI Popup */
.leaflet-popup-content-wrapper .poi-popup-container {
  background: rgba(26, 27, 35, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .leaflet-popup-content-wrapper .poi-popup-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.poi-popup h4 {
  color: var(--white);
  margin: 0 0 0.25rem 0;
}

[data-theme="light"] .poi-popup h4 {
  color: var(--dark);
}

.poi-popup p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .poi-popup p {
  color: rgba(42, 43, 53, 0.7);
}

/* Pin location button spinner */
.pin-location-btn .spinner {
  animation: spin 0.8s linear infinite;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 3000;
  min-width: 320px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: -0.25rem;
  margin-right: -0.25rem;
}

.toast-close:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

/* Toast Types */
.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.modal-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
}

.modal-btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
}

/* Primary Button - Download Receipt (More Prominent) */
.modal-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--charcoal);
  box-shadow: 0 4px 15px rgba(242, 183, 5, 0.2);
  order: 1;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 183, 5, 0.3);
  background: linear-gradient(135deg, var(--amber) 0%, var(--gold) 100%);
}

.modal-btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button - Return to Home (Less Prominent) */
.modal-btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  order: 2;
}

.modal-btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.modal-btn-secondary:active {
  transform: translateY(0);
}

.modal-btn svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .site-review-container {
    padding: 0 1.5rem;
  }

  .site-review-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .site-review-title {
    font-size: 1.75rem;
  }

  .site-review-subtitle {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .site-review-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-wrapper {
    height: 300px;
  }

  .form-actions {
    margin-top: 1rem;
  }

  .submit-btn {
    width: 100%;
    min-width: auto;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .notification-toast {
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification-toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .site-review-page {
    padding-top: 70px;
  }

  .site-review-container {
    padding: 0 1rem;
  }

  /* Fix clear search button positioning on mobile */
  .map-search-wrapper {
    padding: 0.75rem 0.875rem;
    align-items: center;
  }

  .map-search-input {
    padding-right: 0.5rem;
  }

  .clear-search-btn {
    display: none !important;
  }

  .form-actions {
    margin-top: 0.75rem;
  }

  /* Style date picker icon to match select dropdown arrow on mobile */
  input[type="date"]::-webkit-calendar-picker-indicator,
  .date-input::-webkit-calendar-picker-indicator {
    display: none; /* Hide native calendar icon */
  }

  /* Add custom arrow icon matching select dropdown style */
  input[type="date"],
  .date-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 12px !important;
    padding-right: 2.5rem !important;
  }

  [data-theme="light"] input[type="date"],
  [data-theme="light"] .date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232a2b35' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  }

  /* Focus state - gold arrow icon */
  input[type="date"]:focus,
  .date-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f2b705' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  }

  .notification-toast {
    top: 80px;
    right: 0.75rem;
    left: 0.75rem;
  }

  .toast-content {
    padding: 0.875rem 1rem;
  }

  .toast-message {
    font-size: 0.875rem;
  }

  .site-review-form {
    padding: 1.25rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-message {
    font-size: 0.95rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.breadcrumb-link:hover {
  color: var(--gold);
}

.breadcrumb-separator {
  color: var(--text-tertiary);
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] .breadcrumb-nav {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .breadcrumb-link {
  color: var(--text-secondary);
}

[data-theme="light"] .breadcrumb-link:hover {
  color: var(--gold);
}

[data-theme="light"] .breadcrumb-current {
  color: var(--text-primary);
}

/* In-App Browser Banner */
.in-app-browser-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #f2b705 0%, #c98a00 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.in-app-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: relative;
}

.in-app-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.in-app-banner-icon svg {
  color: #1e1f24;
}

.in-app-banner-text {
  flex: 1;
  min-width: 0;
}

.in-app-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1f24;
  margin-bottom: 0.25rem;
}

.in-app-banner-message {
  font-size: 0.85rem;
  color: rgba(30, 31, 36, 0.9);
  line-height: 1.4;
}

.in-app-banner-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  color: #1e1f24;
}

.in-app-banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.in-app-banner-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1.25rem;
  background: #1e1f24;
  color: #f2b705;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.in-app-banner-action:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.in-app-banner-action:active {
  transform: translateY(0);
}

.in-app-banner-action svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .in-app-banner-content {
    padding: 0.875rem 1rem;
  }

  .in-app-banner-icon {
    width: 36px;
    height: 36px;
  }

  .in-app-banner-title {
    font-size: 0.875rem;
  }

  .in-app-banner-message {
    font-size: 0.8rem;
  }

  .in-app-banner-action {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
    width: calc(100% - 2rem);
    margin: 0 1rem 0.875rem;
  }
}

/* In-App Browser Blocking Overlay */
.in-app-browser-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.in-app-overlay-content {
  background: linear-gradient(
    135deg,
    rgba(242, 183, 5, 0.95) 0%,
    rgba(201, 138, 0, 0.95) 100%
  );
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.in-app-overlay-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1f24;
}

.in-app-overlay-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e1f24;
  margin: 0 0 1rem 0;
}

.in-app-overlay-message {
  font-size: 1rem;
  color: rgba(30, 31, 36, 0.9);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.in-app-overlay-steps {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.in-app-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.in-app-step:last-child {
  margin-bottom: 0;
}

.in-app-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #1e1f24;
  color: #f2b705;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.in-app-step-text {
  flex: 1;
  color: #1e1f24;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 0.25rem;
}

.in-app-overlay-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #1e1f24;
  color: #f2b705;
  border: none;
  border-radius: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.in-app-overlay-button:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.in-app-overlay-button:active {
  transform: translateY(0);
}

.in-app-overlay-button svg {
  flex-shrink: 0;
}

.in-app-overlay-dismiss {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: rgba(30, 31, 36, 0.7);
  border: 2px solid rgba(30, 31, 36, 0.3);
  border-radius: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.in-app-overlay-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(30, 31, 36, 0.5);
  color: #1e1f24;
}

@media (max-width: 640px) {
  .in-app-browser-overlay {
    padding: 1rem;
  }

  .in-app-overlay-content {
    padding: 2rem 1.5rem;
  }

  .in-app-overlay-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }

  .in-app-overlay-title {
    font-size: 1.5rem;
  }

  .in-app-overlay-message {
    font-size: 0.9rem;
  }

  .in-app-overlay-steps {
    padding: 1rem;
  }

  .in-app-step-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .in-app-step-text {
    font-size: 0.875rem;
  }

  .in-app-overlay-button {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }

  .in-app-overlay-dismiss {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
  }
}
