/**
 * Hero Fullscreen + Calculator Component
 * Full-screen hero with background image and calculator overlay
 */

.hero-fullscreen-calc {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background Image Layer */
.hero-fullscreen-calc__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fullscreen-calc__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay for better text readability */
.hero-fullscreen-calc__overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(0, 0, 0, var(--overlay-opacity, 0)) 0%, rgba(0, 0, 0, var(--overlay-opacity, 0)) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

/* Content Container */
.hero-fullscreen-calc__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-48);
  display: grid;
  gap: var(--space-48);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
  }
}

/* Left Column: Content */
.hero-fullscreen-calc__content {
  max-width: 100%;
  color: #fff;
}

.hero-fullscreen-calc__title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: var(--lh-tight);
  color: #fff;
  margin-bottom: var(--space-24);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__title {
    font-size: 3em;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__title {
    font-size: 3.5em;
  }
}

@media (min-width: 1280px) {
  .hero-fullscreen-calc__title {
    font-size: 3em;
	text-align:center;
  }
}

/* Title Size Variations */
.hero-fullscreen-calc__title--small {
  font-size: 1.75em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__title--small {
    font-size: 2em !important;
  }
}

.hero-fullscreen-calc__title--medium {
  font-size: 2em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__title--medium {
    font-size: 2.5em !important;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__title--medium {
    font-size: 3em !important;
  }
}

.hero-fullscreen-calc__title--large {
  font-size: 2.75em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__title--large {
    font-size: 3.5em !important;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__title--large {
    font-size: 4em !important;
  }
}

@media (min-width: 1280px) {
  .hero-fullscreen-calc__title--large {
    font-size: 4.5em !important;
  }
}

.hero-fullscreen-calc__title--xlarge {
  font-size: 3em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__title--xlarge {
    font-size: 4em !important;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__title--xlarge {
    font-size: 5em !important;
  }
}

@media (min-width: 1280px) {
  .hero-fullscreen-calc__title--xlarge {
    font-size: 5.5em !important;
  }
}

.hero-fullscreen-calc__subtitle {
  font-size: 1.125em;
  line-height: var(--lh-normal);
  color: #fff;
  margin-bottom: var(--space-32);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__subtitle {
    font-size: 1.25em;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__subtitle {
    font-size: 1.375em;
  }
}

/* Subtitle Size Variations */
.hero-fullscreen-calc__subtitle--small {
  font-size: 0.875em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__subtitle--small {
    font-size: 1em !important;
  }
}

.hero-fullscreen-calc__subtitle--medium {
  font-size: 1em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__subtitle--medium {
    font-size: 1.125em !important;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__subtitle--medium {
    font-size: 1.25em !important;
  }
}

.hero-fullscreen-calc__subtitle--large {
  font-size: 1.25em !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__subtitle--large {
    font-size: 1.5em !important;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen-calc__subtitle--large {
    font-size: 1.75em !important;
  }
}

/* Dynamic Savings Button - Now inside calculator */
.hero-fullscreen-calc__savings-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-48);
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border-radius: var(--radius-8);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
  text-shadow: none;
  width: 100%;
  text-align: center;
  margin-top: var(--space-24);
}

.hero-fullscreen-calc__savings-button:hover,
.hero-fullscreen-calc__savings-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 165, 0, 0.6);
  background: linear-gradient(135deg, #FFE44D 0%, #FFB347 100%);
}

.hero-fullscreen-calc__savings-button:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero-fullscreen-calc__savings-button {
    padding: var(--space-24) var(--space-32);
    font-size: var(--fs-300);
  }
}

/* Right Column: Calculator */
.hero-fullscreen-calc__calculator-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

@media (max-width: 1023px) {
  .hero-fullscreen-calc__calculator-wrapper {
    max-width: 100%;
  }
}

/* Calculator Styles - Enhanced for overlay context */
.hero-fullscreen-calc .calculator {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--space-32);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.hero-fullscreen-calc .calculator__heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-32);
  text-align: center;
  color: var(--color-text);
}

.hero-fullscreen-calc .calculator__commission {
  margin-bottom: var(--space-16);
  padding: var(--space-24);
  background-color: #f0f9ff;
  border-radius: 8px;
  text-align: center;
}

.hero-fullscreen-calc .calculator__sellio {
  margin-bottom: var(--space-32);
  padding: var(--space-24);
  background-color: #f0fdf4;
  border-radius: 8px;
  text-align: center;
}

.hero-fullscreen-calc .calculator__commission-label,
.hero-fullscreen-calc .calculator__sellio-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-fullscreen-calc .calculator__commission-label {
  color: #1e40af;
}

.hero-fullscreen-calc .calculator__sellio-label {
  color: #15803d;
}

.hero-fullscreen-calc .calculator__commission-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-fullscreen-calc .calculator__sellio-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #16a34a;
}

.hero-fullscreen-calc .calculator__savings {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #15803d;
}

.hero-fullscreen-calc .calculator__slider-group {
  margin-bottom: var(--space-16);
}

.hero-fullscreen-calc .calculator__price-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-16);
}

.hero-fullscreen-calc .calculator__price-label-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-fullscreen-calc .calculator__price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-fullscreen-calc .calculator__slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.hero-fullscreen-calc .calculator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.hero-fullscreen-calc .calculator__slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.hero-fullscreen-calc .calculator__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.hero-fullscreen-calc .calculator__slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.hero-fullscreen-calc .calculator__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.hero-fullscreen-calc .calculator__info {
  margin-top: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  text-align: center;
  color: #6b7280;
}

/* Hero Scroll Arrow */
.hero-fullscreen-calc__scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: hero-fullscreen-calc-bounce 2s infinite;
}

.hero-fullscreen-calc__scroll-arrow:hover {
  transform: translateX(-50%) translateY(4px);
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.9);
}

.hero-fullscreen-calc__scroll-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero-fullscreen-calc__scroll-arrow svg {
  width: 24px;
  height: 24px;
}

@keyframes hero-fullscreen-calc-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (min-width: 768px) {
  .hero-fullscreen-calc__scroll-arrow {
    bottom: 48px;
    width: 56px;
    height: 56px;
  }

  .hero-fullscreen-calc__scroll-arrow svg {
    width: 28px;
    height: 28px;
  }
}

/* Mobile Layout - Title Above Calculator, Subtitle Below */
@media (max-width: 1023px) {
  .hero-fullscreen-calc {
    min-height: auto;
    padding-top: var(--space-48);
    padding-bottom: var(--space-80);
  }

  .hero-fullscreen-calc__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
  }

  /* Mobile Order: Title → Calculator → Subtitle */
  .hero-fullscreen-calc__content {
    display: contents; /* Allow children to participate in parent flex layout */
  }

  .hero-fullscreen-calc__title {
    order: 1;
    font-size: 2em;
    margin-bottom: 0;
    text-align: center;
  }

  .hero-fullscreen-calc__calculator-wrapper {
    order: 2;
    max-width: 100%;
    margin: 0;
  }

  .hero-fullscreen-calc__subtitle {
    order: 3;
    font-size: 1em;
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
  }

  .hero-fullscreen-calc .calculator {
    padding: var(--space-24);
  }

  .hero-fullscreen-calc .calculator__heading {
    font-size: 1.25rem;
  }

  .hero-fullscreen-calc .calculator__commission-value,
  .hero-fullscreen-calc .calculator__sellio-value {
    font-size: 2rem;
  }

  .hero-fullscreen-calc__scroll-arrow {
    width: 40px;
    height: 40px;
    bottom: 24px;
  }

  .hero-fullscreen-calc__scroll-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* Tablet Adjustments */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-fullscreen-calc__title {
    font-size: 2.5em !important;
  }

  .hero-fullscreen-calc__subtitle {
    font-size: 1.125em !important;
  }

  .hero-fullscreen-calc .calculator {
    padding: var(--space-32);
  }

  .hero-fullscreen-calc__container {
    gap: var(--space-40);
  }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-fullscreen-calc__scroll-arrow {
    animation: none;
  }
  
  .hero-fullscreen-calc__scroll-arrow:hover {
    transform: translateX(-50%);
  }

  .hero-fullscreen-calc__savings-button {
    transition: none;
  }

  .hero-fullscreen-calc__savings-button:hover {
    transform: none;
  }
}

