/* ==========================================================================
   CONTACT US CUSTOM STYLES
   Project: BET SMART WIN BIGGER - Static HTML/CSS/JS Platform
   ========================================================================== */

/* Hero Section */
.contact-hero {
  position: relative;
  background-image: url('../images/contact-us-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%); */
  z-index: 1;
}

.contact-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -250px;
  width: 600px;
  height: 600px;
  background-color: #D40E37;
  opacity: 0.28;
  filter: blur(110px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero-content {
  text-align: left;
}

.contact-hero-title {
  font-family: var(--font-heading);
  font-size: 4.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1px;
}

.contact-hero-title .red-text {
  color: #FF154B;
  display: inline-block;
  font-weight: 700;
}

/* Content & Card Section */
.contact-content {
  padding: 100px 0 120px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.contact-wrap {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-wrap::before {
  content: '';
  position: absolute;
  left: -250px;
  width: 450px;
  height: 50%;
  background-color: #D40E37;
  opacity: 0.12;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Contact Cards (Figma Appearance specifications matched) */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 45px 35px;

  /* Corner radius: 12 */
  border-radius: 12px;

  /* Fill: Linear 4% (Figma spec white to grey) */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(107, 107, 107, 0.04) 100%);

  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Gradient border (Stroke: Linear 30% inside, 1px) using mask to prevent inner bleed-through */
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  /* Stroke weight: 1 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(107, 107, 107, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(255, 21, 75, 0.12);
}

.contact-card:hover::before {
  background: linear-gradient(135deg, rgba(255, 21, 75, 0.5) 0%, rgba(255, 21, 75, 0) 100%);
}

/* Custom Icons wrapper (Rounded Square) */
.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: #FF154B;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.contact-card:hover .card-icon-wrap {
  transform: scale(1.05);
  background-color: #1c1c1c;
  border-color: rgba(255, 21, 75, 0.4);
}

.card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.card-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Titles */
.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* Card Body text */
.card-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: #D6D6D6;
  margin-bottom: 24px;
  font-weight: 400;
}

.card-text strong {
  color: #ffffff;
}

/* Card CTA button */
.card-btn {
  display: inline-block;
  padding: 8px 24px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-top: auto;
  /* Push to bottom */
}

.card-btn:hover {
  background-color: #FF154B;
  border-color: #FF154B;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 21, 75, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-hero-title {
    font-size: 3.2rem;
  }

  .contact-content {
    padding: 70px 0 80px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-card {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 320px;
  }

  .contact-hero-title {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }
}