/* =============================================
   BESTCLEAN24 — CONTACT FORM SECTION
   Animated card + floating labels + shimmer
   ============================================= */


/* =============================================================
   SECTION WRAPPER
   ============================================================= */
.bc-contact-section {
  position: relative;
  overflow: hidden;
  background: var(--bc-blue);
}

.bc-contact-bg {
  position: absolute;
  inset: 0;
  background: var(--bc-blue);
  z-index: 1;
}

/* Decorative circles */
.bc-contact-bg::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: -120px;
  left: -80px;
}

.bc-contact-bg::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  bottom: -100px;
  right: -50px;
}

.bc-contact-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}


/* =============================================================
   LEFT COLUMN — TEXT + PHONE
   ============================================================= */
.bc-contact-text {
  color: var(--bc-white);
}

/* Force white on all text children — prevent Astra/body inheritance */
.bc-contact-section .bc-contact-text,
.bc-contact-section .bc-contact-text h2,
.bc-contact-section .bc-contact-text p,
.bc-contact-section .bc-contact-text a,
.bc-contact-section .bc-contact-title,
.bc-contact-section .bc-contact-phone,
.bc-contact-section .bc-contact-phone-number {
  color: var(--bc-white);
}

.bc-contact-section .bc-contact-badge {
  color: rgba(255, 255, 255, 0.6);
}

.bc-contact-section .bc-contact-desc {
  color: rgba(255, 255, 255, 0.7);
}

.bc-contact-section .bc-contact-or {
  color: rgba(255, 255, 255, 0.35);
}

.bc-contact-section .bc-contact-phone-status {
  color: rgba(255, 255, 255, 0.55);
}

.bc-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--bc-font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.bc-contact-badge-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: bc-cf-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

@keyframes bc-cf-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.bc-contact-title {
  font-family: var(--bc-font);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--bc-white);
}

.bc-contact-desc {
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

/* Phone CTA */
.bc-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bc-white);
  transition: opacity 0.2s;
}

.bc-contact-phone:hover {
  color: var(--bc-white);
  opacity: 0.85;
}

.bc-contact-phone-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.bc-contact-phone-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: bc-cf-ring 2.5s ease-out infinite;
}

.bc-contact-phone-ring:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes bc-cf-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.bc-contact-phone-circle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: bc-cf-pulse 2s ease-in-out infinite;
}

@keyframes bc-cf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.bc-contact-phone-circle svg {
  width: 19px;
  height: 19px;
  fill: var(--bc-white);
  animation: bc-cf-shake 3s ease-in-out infinite;
}

@keyframes bc-cf-shake {
  0%, 30%, 100% { transform: rotate(0); }
  5% { transform: rotate(12deg); }
  10% { transform: rotate(-10deg); }
  15% { transform: rotate(8deg); }
  20% { transform: rotate(-6deg); }
  25% { transform: rotate(3deg); }
}

.bc-contact-phone-info {
  display: flex;
  flex-direction: column;
}

.bc-contact-phone-number {
  font-family: var(--bc-font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bc-contact-phone-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--bc-font);
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.bc-contact-phone-status-dot {
  width: 5px;
  height: 5px;
  background: #4ADE80;
  border-radius: 50%;
  animation: bc-cf-dot 2s ease-in-out infinite;
}

.bc-contact-or {
  font-family: var(--bc-font);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 1.25rem 0 0.25rem;
}


/* =============================================================
   RIGHT COLUMN — FLOATING CARD
   ============================================================= */
.bc-contact-card {
  background: var(--bc-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: bc-cf-float 5s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s;
}

@keyframes bc-cf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bc-contact-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Shimmer edge */
.bc-contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.15) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.bc-contact-card:hover::before {
  opacity: 1;
}

.bc-contact-card-title {
  font-family: var(--bc-font);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bc-black);
  margin-bottom: 1.5rem;
  text-align: center;
}


/* =============================================================
   FORM FIELDS — FLOATING LABELS
   ============================================================= */
.bc-form-group {
  position: relative;
  margin-bottom: 1.15rem;
}

.bc-form-input,
.bc-form-textarea {
  width: 100%;
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bc-black);
  border: 1.5px solid var(--bc-border);
  border-radius: 10px;
  padding: 1.4rem 2.5rem 0.5rem 0.9rem;
  background: var(--bc-white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.bc-form-textarea {
  resize: vertical;
  min-height: 90px;
  padding-top: 1.5rem;
}

/* Floating label */
.bc-form-label {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bc-gray-mid);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  background: transparent;
  padding: 0 0.15rem;
}

.bc-form-label .req {
  color: var(--bc-blue);
}

.bc-form-group--textarea .bc-form-label {
  top: 1.1rem;
  transform: translateY(0);
}

/* Float up on focus or content */
.bc-form-input:focus ~ .bc-form-label,
.bc-form-input:not(:placeholder-shown) ~ .bc-form-label {
  top: 0.45rem;
  transform: translateY(0) scale(0.75);
  color: var(--bc-blue);
  font-weight: 700;
}

.bc-form-textarea:focus ~ .bc-form-label,
.bc-form-textarea:not(:placeholder-shown) ~ .bc-form-label {
  top: 0.3rem;
  transform: translateY(0) scale(0.75);
  color: var(--bc-blue);
  font-weight: 700;
}

/* Focus glow */
.bc-form-input:focus,
.bc-form-textarea:focus {
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgba(0, 49, 244, 0.1);
  background: rgba(0, 49, 244, 0.015);
}

/* Animated underline */
.bc-form-group::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bc-blue);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-form-group:focus-within::after {
  width: calc(100% - 1.8rem);
  left: 0.9rem;
}

/* Green checkmark */
.bc-form-group .bc-check {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}

.bc-form-group--textarea .bc-check {
  top: 1.15rem;
  transform: translateY(0) scale(0);
}

.bc-form-input:not(:placeholder-shown) ~ .bc-check {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.bc-form-textarea:not(:placeholder-shown) ~ .bc-check {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* =============================================================
   SUBMIT BUTTON
   ============================================================= */
.bc-form-submit {
  width: 100%;
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bc-white);
  background: var(--bc-blue);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.bc-form-submit:hover {
  background: var(--bc-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 49, 244, 0.35);
}

.bc-form-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 49, 244, 0.2);
}

/* Shimmer sweep */
.bc-form-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: bc-cf-shimmer 4s ease-in-out infinite;
}

@keyframes bc-cf-shimmer {
  0%, 70%, 100% { left: -100%; }
  85% { left: 100%; }
}

.bc-form-note {
  text-align: center;
  font-family: var(--bc-font);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--bc-gray-mid);
  margin-top: 0.75rem;
  line-height: 1.5;
}


/* =============================================================
   CF7 OVERRIDE — style CF7 forms inside .bc-contact-card
   ============================================================= */
.bc-contact-card .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem;
}

.bc-contact-card .wpcf7-form-control-wrap input,
.bc-contact-card .wpcf7-form-control-wrap textarea {
  width: 100%;
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bc-black);
  border: 1.5px solid var(--bc-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: var(--bc-white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bc-contact-card .wpcf7-form-control-wrap input:focus,
.bc-contact-card .wpcf7-form-control-wrap textarea:focus {
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgba(0, 49, 244, 0.1);
}

.bc-contact-card .wpcf7-submit {
  width: 100%;
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bc-white);
  background: var(--bc-blue);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.bc-contact-card .wpcf7-submit:hover {
  background: var(--bc-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 49, 244, 0.35);
}


/* =============================================================
   DOT SEPARATORS
   ============================================================= */

/* Shared separator */
.bc-contact-sep {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 3;
}

.bc-contact-sep-line {
  flex: 1;
  height: 1px;
}

.bc-contact-sep-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 0.75rem;
}

/* Top: blue bg, white elements */
.bc-contact-sep--top {
  background: var(--bc-blue);
}

.bc-contact-sep--top .bc-contact-sep-line {
  background: rgba(255, 255, 255, 0.25);
}

.bc-contact-sep--top .bc-contact-sep-dot {
  background: var(--bc-white);
}

/* Bottom: blue contact → footer */
.bc-contact-sep--bottom {
  background: var(--bc-blue);
}

.bc-contact-sep--bottom .bc-contact-sep-line {
  background: rgba(255, 255, 255, 0.25);
}

.bc-contact-sep--bottom .bc-contact-sep-dot {
  background: var(--bc-white);
}


/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 768px) {
  .bc-contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .bc-contact-title {
    font-size: 1.35rem;
  }

  .bc-contact-card {
    padding: 1.5rem;
    animation: none;
  }

  .bc-contact-card::before {
    display: none;
  }

  .bc-contact-phone-number {
    font-size: 0.92rem;
  }
}
