/**
 * Quick & Easy Connection Process Section Styles — Neto ISP Theme
 * Developed by MH Badhon Ahmed (Web Techiq)
 */

/* ── Section Shell ────────────────────────────────────────────────────── */
.neto-connection-section {
  position: relative;
  width: 100%;
  padding: var(--conn-pad-top, var(--neto-conn-pad-top, 80px)) 0 var(--conn-pad-bottom, var(--neto-conn-pad-bottom, 70px)) 0;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

/* Perfect Section Finishing Top & Bottom Dividers */
.neto-connection-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 0, 0.20) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.neto-connection-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(226, 232, 240, 0.85) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Section Header ────────────────────────────────────────────────────── */
.conn-section-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.conn-tagline-badge {
  display: inline-flex;
  margin-bottom: 14px;
}

.conn-tagline-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pkg-title-from, #ff6b00);
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.20);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.08);
}

.conn-section-title {
  font-family: var(--neto-heading-font, 'Outfit', sans-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.conn-section-title .title-main {
  color: #0f172a;
}

.conn-section-title .title-highlight {
  background: linear-gradient(135deg, var(--pkg-title-from, #ff6b00) 0%, var(--pkg-title-to, #ffb800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.conn-section-subtitle {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ── Steps Grid & Flow Line Wrapper ───────────────────────────────────── */
.conn-steps-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

/* Desktop Connecting Timeline Line */
.conn-steps-flow-line {
  position: absolute;
  top: 40px; /* Aligns through badge vertical center */
  left: 16%;
  right: 16%;
  height: 3px;
  background: #f1f5f9;
  border-radius: 4px;
  z-index: 1;
  overflow: hidden;
}

.flow-line-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--conn-badge-bg, #ffb800) 0%,
    var(--pkg-title-from, #ff6b00) 50%,
    var(--conn-badge-bg, #ffb800) 100%
  );
  background-size: 200% 100%;
  animation: connFlowLineShimmer 3s linear infinite;
  opacity: 0.65;
}
@keyframes connFlowLineShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 3-Column Responsive Grid */
.conn-steps-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--conn-gap-desktop, var(--neto-conn-gap-desktop, 28px));
}

/* ── Step Card Item ───────────────────────────────────────────────────── */
.conn-step-card {
  position: relative;
  background: var(--conn-card-bg, #ffffff);
  border: 1px solid var(--conn-card-border, #f1f5f9);
  border-radius: 20px;
  padding: 36px 28px 32px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.conn-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 107, 0, 0.30);
}

/* Badge Icon Container */
.conn-step-badge-wrap {
  position: relative;
  margin-bottom: 22px;
  z-index: 2;
}

/* Circular Number Badge */
.conn-step-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--conn-badge-bg, #ffb800);
  color: var(--conn-badge-color, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--neto-heading-font, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  user-select: none;
}

.conn-step-card:hover .conn-step-badge {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.55);
}

/* Step Card Typography */
.conn-step-title {
  font-family: var(--neto-heading-font, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.conn-step-card:hover .conn-step-title {
  color: var(--pkg-title-from, #ff6b00);
}

.conn-step-desc {
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* ── Bottom Disclaimer Note ───────────────────────────────────────────── */
.conn-disclaimer-wrap {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.conn-disclaimer-note {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  padding: 16px 24px;
}

.conn-disclaimer-note p {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ── Responsive Breakpoints ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .conn-section-title {
    font-size: 32px;
  }

  .conn-steps-flow-line {
    display: none; /* Hide horizontal flow line on mobile/tablet */
  }

  .conn-steps-grid {
    grid-template-columns: 1fr;
    gap: var(--conn-gap-tablet, var(--neto-conn-gap-tablet, 24px));
    max-width: 520px;
    margin: 0 auto;
  }

  .conn-step-card {
    padding: 28px 24px;
  }
}

@media (max-width: 639px) {
  .conn-section-title {
    font-size: 26px;
  }
  .conn-section-subtitle {
    font-size: 14.5px;
  }
  .conn-steps-grid {
    gap: var(--conn-gap-mobile, var(--neto-conn-gap-mobile, 20px));
  }
  .conn-disclaimer-note {
    padding: 14px 18px;
  }
  .conn-disclaimer-note p {
    font-size: 11.5px;
  }
}
