/* Custom Styles */
:root {
  --color-primary: #15803d;
  --color-primary-hover: #166534;
  --color-accent: #ea580c;
  --color-background: #ffffff;
  --color-foreground: #111827;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  top: 0 !important;
  /* Added for Google Translate widget */
}

/* Default: hidden on all screens (mobile first) */
.desktop-only {
  display: none;
}

/* Visible on screens >= 768px (desktop/tablet) */
@media (min-width: 768px) {
  .desktop-only {
    display: flex;
    /* or 'block' depending on your element type */
    align-items: center;
    /* optional, if you want flex alignment */
    gap: 2rem;
    /* optional spacing if using flex like Tailwind's space-x-8 */
  }
}

/* Hero Gradient */
.hero-gradient {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #e5e7eb 100%);
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  ring: 2px;
  ring-color: var(--color-primary);
}

/* Button Styles */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast Animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-show {
  display: block !important;
  animation: slideIn 0.3s ease-out;
}

.toast-hide {
  animation: slideOut 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Wizard Steps */
.wizard-step {
  transition: all 0.3s ease;
}

.wizard-step.active {
  background-color: var(--color-primary);
  color: white;
}

.wizard-step.completed {
  background-color: rgba(21, 128, 61, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-gradient h1 {
    font-size: 3rem;
  }

  .wizard-steps {
    overflow-x: auto;
  }
}

/* Star Rating */
.star-filled {
  fill: #f59e0b;
  color: #f59e0b;
}

/* Google Translate Widget Styles */
/* Hide the Google Translate widget completely */
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.VIpgJd-ZVi9od-l4eHX-hSRGPd {
  display: none !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

tr[valign="middle"] {
  display: none !important;
}

#google_translate_element select {
  background: #ffde02;
  outline: none;
  color: #000;
  border: none;
  border-radius: 3px;
  padding: 6px 8px;
}

#google_translate_element select>option {
  color: black;
}

#google_translate_element select>option:hover {
  background-color: #a827dd;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
}

.goog-te-banner-frame {
  display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

.VIpgJd-ZVi9od-aZ2wEe-OiiCO-ti6hGc {
  display: none !important;
}

.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

.VIpgJd-ZVi9od-aZ2wEe-OiiCO {
  display: none !important;
}

.goog-te-combo {
  width: 195px !important;
  height: 40px !important;
}

.goog-te-combo select {
  height: 40px;
}

.goog-te-combo select option {
  background-color: #00c076;
}

/* Language Modal Styles */
.language-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
  overflow: hidden;
}

.language-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.language-modal h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 10px;
  text-align: center;
}

.language-modal p {
  color: #6b7280;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.language-options {
  display: grid;
  gap: 12px;
}

.language-option {
  padding: 16px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-weight: 500;
  color: #111827;
  text-align: center;
}

.language-option:hover {
  border-color: #15803d;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.1);
}

.language-option:active {
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

/* Mobile Sidebar Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-out;
  z-index: 9998;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Page Loading Screen Styles */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease-out;
}

.page-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Prevent body scroll when modal or menu is open */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Ensure mobile menu button is visible only on mobile */
.mobile-menu-button {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Language Icon Button Styles */
.language-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.language-icon-button:hover {
  background: #e5e7eb;
  border-color: #15803d;
  transform: scale(1.05);
}

.language-icon-button:active {
  transform: scale(0.95);
}