/* GHL Custom Code for Kjøpe Klokke Side */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Main section container - full width */
.rt-buy-watch-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #ffffff;
}

/* Hero section */
.rt-buy-hero {
  background: var(--hero-gradient);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rt-buy-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.rt-buy-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.rt-buy-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.rt-buy-hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

/* Content container */
.rt-buy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Introduction section */
.rt-buy-intro {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rt-buy-intro.revealed {
  opacity: 1;
  transform: translateY(0);
}

.rt-buy-intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

/* Benefits grid */
.rt-buy-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.rt-buy-benefit {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rt-buy-benefit.revealed {
  opacity: 1;
  transform: translateY(0);
}

.rt-buy-benefit-icon {
  width: 80px;
  height: 80px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  color: #4a90e2;
  transition: all 0.3s ease;
}

.rt-buy-benefit:hover .rt-buy-benefit-icon {
  background-color: #4a90e2;
  color: #ffffff;
  transform: scale(1.1);
}

.rt-buy-benefit-title {
  font-size: 22px;
  font-weight: 600;
  color: #0b1d3c;
  margin-bottom: 15px;
}

.rt-buy-benefit-description {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
}

/* Process section */
.rt-buy-process {
  background-color: #f8f9fa;
  padding: 80px 0;
  margin: 0 -20px; /* Counteract parent padding */
}

.rt-buy-process-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rt-buy-process-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rt-buy-process-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.rt-buy-process-title {
  font-size: 36px;
  font-weight: 700;
  color: #0b1d3c;
  margin-bottom: 20px;
}

.rt-buy-process-subtitle {
  font-size: 16px;
  color: #555555;
}

/* Timeline */
.rt-buy-timeline {
  position: relative;
  padding: 40px 0;
}

.rt-buy-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e0e0e0;
  transform: translateX(-50%);
}

.rt-buy-timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rt-buy-timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(50px);
}

.rt-buy-timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.rt-buy-timeline-content {
  flex: 1;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.rt-buy-timeline-item:nth-child(odd) .rt-buy-timeline-content {
  margin-right: 40px;
}

.rt-buy-timeline-item:nth-child(even) .rt-buy-timeline-content {
  margin-left: 40px;
}

.rt-buy-timeline-dot {
  width: 40px;
  height: 40px;
  background-color: #4a90e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.rt-buy-timeline-title {
  font-size: 20px;
  font-weight: 600;
  color: #0b1d3c;
  margin-bottom: 10px;
}

.rt-buy-timeline-description {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
}

/* Brands section */
.rt-buy-brands {
    padding: 80px 0;
    text-align: center;
}

.rt-buy-brands-header {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rt-buy-brands-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.rt-buy-brands-title {
    font-size: 36px;
    font-weight: 700;
    color: #0b1d3c;
    margin-bottom: 20px;
}

/* Brands Carousel */
.brands-carousel-container {
    margin-top: 3rem;
    overflow: hidden;
    width: 100%;
}

.brands-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.brand-item {
    flex: 0 0 auto;
    background: var(--pure-white);
    border-radius: 12px;
    padding: 2rem;
    margin-right: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(3, 19, 55, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(3, 19, 55, 0.12);
}

.brand-item img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-carousel:hover {
    animation-play-state: paused;
}


/* CTA section */
.rt-buy-cta {
  background: linear-gradient(135deg, #4a90e2 0%, #3d7bc8 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rt-buy-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.rt-buy-cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.rt-buy-cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.rt-buy-cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.rt-buy-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.rt-buy-cta-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rt-buy-cta-button-primary {
  background-color: #ffffff;
  color: #4a90e2;
}

.rt-buy-cta-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rt-buy-cta-button-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.rt-buy-cta-button-secondary:hover {
  background-color: #ffffff;
  color: #4a90e2;
}

/* Responsive styles */
@media (max-width: 991px) {
  .rt-buy-hero-title {
    font-size: 36px;
  }

  .rt-buy-benefits {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rt-buy-timeline::before {
    left: 20px;
  }

  .rt-buy-timeline-item,
  .rt-buy-timeline-item:nth-child(even) {
    flex-direction: row;
    transform: none !important; /* Override inline transform */
    align-items: flex-start;
  }
  
  .rt-buy-timeline-dot {
      margin-right: 20px;
      margin-left: 0;
  }

  .rt-buy-timeline-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: calc(100% - 60px);
  }
}

@media (max-width: 767px) {
  .rt-buy-hero {
    padding: 80px 20px 60px;
  }

  .rt-buy-hero-title {
    font-size: 28px;
  }

  .rt-buy-hero-subtitle {
    font-size: 16px;
  }

  .rt-buy-content {
    padding: 60px 20px;
  }
  
  .rt-buy-process {
      margin: 0 -20px;
      padding: 60px 20px;
  }

  .rt-buy-process-title,
  .rt-buy-brands-title,
  .rt-buy-cta-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .rt-buy-hero-title {
    font-size: 24px;
  }

  .rt-buy-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .rt-buy-cta-button {
    width: 100%;
    text-align: center;
  }
}