/* Loading and Error States */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.error-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.error-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.error-content h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-content p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.error-reload-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
}

.error-reload-btn:hover {
  opacity: 0.9;
}

/* Hide main content until JavaScript loads */
.main-container {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.main-container.loaded {
  opacity: 1;
}

/* Ensure buttons are clickable */
button {
  position: relative;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}

/* Ensure video controls are accessible */
video {
  position: relative;
  z-index: 10;
}

/* Remove video control fade animations and grey background */
video::-webkit-media-controls {
  transition: none !important;
  animation: none !important;
}

video::-webkit-media-controls-panel {
  transition: none !important;
  animation: none !important;
  background: transparent !important;
}

video::-webkit-media-controls-overlay-enclosure {
  transition: none !important;
  animation: none !important;
  background: transparent !important;
}

/* For Firefox */
video::-moz-media-controls {
  transition: none !important;
  animation: none !important;
}

/* Remove grey background during loading */
video {
  background: transparent !important;
}

/* Quote buttons responsive layout */
.quote-mobile-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

.quote-desktop-buttons {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

/* Complex Quote Background - matching original QuoteBackground.tsx */
.quote-background-complex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.quote-bg-container {
  position: relative;
  width: 2635px;
  height: 2552px;
  top: -827px;
  left: -683px;
}

@media (min-width: 640px) {
  .quote-bg-container {
    left: 50%;
    transform: translateX(-50%);
  }
}

.quote-bg-base {
  position: absolute;
  width: 1512px;
  height: 953px;
  top: 827px;
  left: 683px;
  background: #1e40c8;
}

@media (min-width: 640px) {
  .quote-bg-base {
    left: 50%;
    transform: translateX(-50%);
  }
}

.quote-bg-gradients {
  position: absolute;
  width: 2635px;
  height: 2552px;
  top: 0;
  left: 0;
  mix-blend-mode: color-dodge;
}

.quote-bg-gradient-1 {
  position: absolute;
  width: 1390px;
  height: 1276px;
  top: 0;
  left: 0;
  border-radius: 695px / 638px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(77,180,249,1) 0%, rgba(123,165,247,0) 100%);
}

.quote-bg-gradient-group {
  position: absolute;
  width: 2192px;
  height: 1750px;
  top: 802px;
  left: 443px;
}

.quote-bg-gradient-2 {
  position: absolute;
  width: 727px;
  height: 673px;
  top: 0;
  left: 1052px;
  border-radius: 363.5px / 336.5px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(83,77,249,1) 0%, rgba(123,165,247,0) 100%);
}

.quote-bg-gradient-3 {
  position: absolute;
  width: 887px;
  height: 800px;
  top: 173px;
  left: 1305px;
  border-radius: 443.5px / 400px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(77,180,249,1) 0%, rgba(123,165,247,0) 100%);
}

.quote-bg-gradient-4 {
  position: absolute;
  width: 1974px;
  height: 1740px;
  top: 10px;
  left: 0;
  border-radius: 987px / 870.25px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(77,180,249,1) 0%, rgba(123,165,247,0) 100%);
}

/* Quote Text Font Settings - matching original HeroContent.tsx */
.hero-heading-quote-mobile {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: normal !important;
  color: white !important;
  font-size: 24px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  line-height: 39px !important;
  margin: 0 !important;
}

.hero-heading-quote-desktop {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 22px !important;
  line-height: 38px !important;
  text-align: center !important;
  color: white !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* Responsive font scaling for desktop quote */
@media (min-width: 640px) {
  .hero-heading-quote-desktop {
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
  }
}

@media (min-width: 768px) {
  .hero-heading-quote-desktop {
    font-size: 26px !important;
    line-height: 1.5 !important;
  }
}

@media (min-width: 1024px) {
  .hero-heading-quote-desktop {
    font-size: 30px !important;
    line-height: 1.67 !important;
  }
}

@media (min-width: 1280px) {
  .hero-heading-quote-desktop {
    font-size: 36px !important;
    line-height: 1.67 !important;
  }
}

/* Font weight overrides for spans */
.hero-heading-quote-mobile .font-bold,
.hero-heading-quote-desktop .font-medium {
  font-weight: 900 !important; /* font-black in original */
}

.hero-heading-quote-mobile .font-normal,
.hero-heading-quote-desktop .font-normal {
  font-weight: normal !important;
}

/* Quote Section Buttons - matching original exactly */

/* Mobile Quote Buttons */
.quote-mobile-buttons .quote-mobile-primary {
  width: 263px !important;
  height: 63px !important;
  background: white !important;
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  border-radius: 8px !important; /* rounded-lg */
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: bold !important;
  color: black !important;
  font-size: 16px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.quote-mobile-buttons .quote-mobile-secondary {
  width: 265px !important;
  height: 48px !important;
  background: white !important;
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  border-radius: 7px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: bold !important; /* Make text bold */
  color: #1f242c !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Space between text and icon */
}

.quote-mobile-buttons .quote-mobile-secondary svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

/* Desktop Quote Buttons */
.quote-desktop-buttons .quote-desktop-secondary-btn {
  width: 213px !important;
  height: 58px !important;
  background: white !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: bold !important; /* Make text bold */
  color: #1f242c !important;
  font-size: 16px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Space between text and icon */
}

.quote-desktop-buttons .quote-desktop-secondary-btn svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.quote-desktop-buttons .quote-desktop-primary-btn {
  width: 239px !important;
  height: 58px !important;
  background: white !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: bold !important;
  color: black !important;
  font-size: 16px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
}

/* Remove border from navbar download button - FORCE override */
.navbar .navbar-secondary-button,
.secondary-button.navbar-secondary-button {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Fix navbar background color - FORCE override */
.navbar {
  background-color: #F5F5F5 !important;
}

/* Fix navbar Japanese text font family and color - AGGRESSIVE override */
.navbar .navbar-logo-text,
.navbar-main-container .navbar-logo-text,
.navbar-logo-container .navbar-logo-text,
span.navbar-logo-text,
.navbar span {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 500 !important;
  color: #1400C8 !important; /* Blue color matching exaBase */
}

/* Also ensure Noto Sans JP is loaded and applied to all Japanese text */
* {
  font-feature-settings: "palt" 1;
} 