/* ===================================================================
   CTA Two-Column Section Styles
   Grid layout for Newsletter + Work Together CTAs
   =================================================================== */

/* Grid Container - Mobile-first approach */
.cta-two-column-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem;
  margin-top: 2rem; /* Reduced from 3rem for better visual balance with section-heading margin-bottom */
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column layout for desktop */
@media (min-width: 768px) {
  .cta-two-column-grid {
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 3rem;
  }
}

/* Column Cards - Base styles with subtle background */
.cta-column {
  background: rgba(255, 255, 255, 0.03); /* Subtle translucent background */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth easing */
}

/* Column hover effects */
.cta-column:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Column Headings - Accent blue, centered */
.cta-column-heading {
  color: #8EADCF !important; /* Accent blue */
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 1.8rem !important;
  font-weight: 300 !important;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Responsive heading size */
@media (max-width: 768px) {
  .cta-column-heading {
    font-size: 1.4rem !important;
  }
}

/* Column Description - Secondary gray, centered */
.cta-column-description {
  color: #B0B0B0; /* Secondary text color */
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Newsletter Form in Column - Vertical layout */
.cta-column .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

/* Input group for email and button */
.cta-column .newsletter-input-group {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

/* Form input flex behavior */
.cta-column .form-input {
  flex: 1;
  margin-bottom: 0;
}

/* Newsletter button sizing */
.cta-column .newsletter-form .btn-full {
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Checkbox group styling */
.cta-column .newsletter-checkbox-group {
  margin-top: 0.5rem;
}

.cta-column .newsletter-checkbox-label {
  font-size: 0.75rem;
  color: #fff;
}

/* Mobile newsletter form - Vertical stack */
@media (max-width: 480px) {
  .cta-column .newsletter-input-group {
    flex-direction: column;
  }

  .cta-column .newsletter-form .btn-full {
    width: 100%;
  }
}

/* CTA Button Wrapper - Centered button */
.cta-button-wrapper {
  text-align: center;
}

.cta-button-wrapper .btn-full {
  display: inline-block;
  width: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Mobile CTA button - Full width */
@media (max-width: 480px) {
  .cta-button-wrapper .btn-full {
    width: 100%;
  }
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
  .cta-column {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .cta-column {
    padding: 1.5rem 1rem;
  }
}

/* ===================================================================
   Button Styles - Ensuring visibility on dark backgrounds
   =================================================================== */

/* Base .btn styling - Light blue accent background with dark text */
.btn {
  display: inline-block;
  height: 3rem;
  padding: 0.75rem 2rem;
  line-height: 1.5rem;
  border: 2px solid #8EADCF; /* Accent blue */
  border-radius: 0;
  background-color: #8EADCF; /* Accent blue background */
  color: #0F1620 !important; /* Dark text for visibility on light blue */
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  position: relative;
  z-index: 10;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Button hover effect overlay */
.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Button hover state - Enhanced brightness and elevation */
.btn:hover {
  background-color: #8EADCF;
  color: #0F1620 !important;
  filter: brightness(1.15);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.btn:hover::after {
  height: 100%;
}

/* .btn-full for full-width buttons on mobile */
.btn-full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-full {
    width: auto; /* Auto-width on larger screens */
  }
}
