/* =========================================
   BYALL AUTOMATION — CONTACT PAGE STYLES
   contact.css
   ========================================= */

/* ── CONTACT PAGE WRAPPER ── */

.byall-contact-page {
  background:
    radial-gradient(ellipse at top left, rgba(26,159,224,.18), transparent 32%),
    radial-gradient(ellipse at bottom right, rgba(245,197,24,.08), transparent 40%),
    linear-gradient(180deg, #020b1a 0%, #07111f 100%);
  padding: 130px 20px 90px;
  color: #ffffff;
}

/* ── CONTACT CARD (grid wrapper) ── */

.byall-contact-card {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* ── BRAND PANEL (left) ── */

.byall-brand-panel {
  padding: 52px;
  background:
    linear-gradient(rgba(2,11,26,.55), rgba(2,11,26,.78)),
    url('https://byallautomation.com/wp-content/uploads/2026/04/contact.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.byall-brand-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.byall-brand-panel h1 span {
  color: #1a9fe0;
  display: block;
}

.byall-brand-panel > p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.80;
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 1.05rem;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* ── INFO ITEMS ── */

.byall-info-grid {
  display: grid;
  gap: 14px;
}

.byall-info-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t-fast, .18s), border-color var(--t-fast, .18s);
}

.byall-info-item:hover {
  background: rgba(26, 159, 224, 0.10);
  border-color: rgba(26, 159, 224, 0.28);
}

.byall-info-item h3 {
  font-family: var(--font-display);
  color: #1a9fe0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.byall-info-item p,
.byall-info-item a {
  color: #ffffff;
  font-size: 0.97rem;
  line-height: 1.65;
  text-decoration: none;
  transition: color var(--t-fast, .18s);
}

.byall-info-item a:hover { color: #f5c518; }

/* ── FORM PANEL (right) ── */

.byall-form-panel {
  padding: 52px;
  background: rgba(7, 17, 31, 0.70);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.byall-form-panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.6px;
}

.form-subtitle {
  color: #94a3b8;
  line-height: 1.72;
  margin-bottom: 30px;
  font-size: 0.95rem;
  font-weight: 300;
}

/* ── FORM FIELDS ── */

.byall-field { margin-bottom: 18px; }

.byall-field label {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.byall-field input,
.byall-field select,
.byall-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(10, 22, 40, 0.90);
  color: #ffffff;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 0.97rem;
  font-family: var(--font-body, sans-serif);
  transition: border-color var(--t-fast, .18s),
              box-shadow var(--t-fast, .18s),
              background var(--t-fast, .18s);
  appearance: none;
  -webkit-appearance: none;
}

.byall-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a9fe0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.byall-field select option {
  background: #0a1628;
  color: #ffffff;
}

.byall-field input::placeholder,
.byall-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.byall-field input:focus,
.byall-field select:focus,
.byall-field textarea:focus {
  outline: none;
  border-color: rgba(26, 159, 224, 0.75);
  box-shadow: 0 0 0 4px rgba(26, 159, 224, 0.14);
  background: rgba(13, 27, 62, 0.90);
}

.byall-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.65;
}

/* ── SUBMIT BUTTON ── */

.byall-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
  padding: 17px 26px;
  border-radius: 14px;
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #1a9fe0, #1a6fc4);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-mid, .3s) cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--t-mid, .3s) ease,
              background var(--t-mid, .3s) ease,
              color var(--t-mid, .3s) ease;
  box-shadow: 0 14px 36px rgba(26, 159, 224, 0.30);
}

.byall-submit:hover {
  background: linear-gradient(135deg, #f5c518, #d4a010);
  color: #020b1a;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(245, 197, 24, 0.30);
}

.byall-submit:active { transform: translateY(-1px); }

/* ── TRUSTED BY SECTION ── */

.trusted-section {
  background: #ffffff;
  padding: 90px 24px;
  overflow: hidden;
  text-align: center;
  color: #0f172a;
}

.trusted-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.trusted-section > p {
  color: #64748b;
  margin-bottom: 48px;
  font-size: 17px;
  font-weight: 300;
}

.logo-grid-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.logo-grid {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: trustedScroll 58s linear infinite;
}

.logo-grid:hover { animation-play-state: paused; }

@keyframes trustedScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-grid img {
  width: 180px;
  height: 110px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(26, 159, 224, .14);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
  flex-shrink: 0;
  transition: transform var(--t-mid, .3s) cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--t-mid, .3s) ease;
}

.logo-grid img:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .byall-contact-card {
    grid-template-columns: 1fr;
  }

  .byall-brand-panel,
  .byall-form-panel {
    padding: 36px;
  }

  .byall-form-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 560px) {
  .byall-contact-page {
    padding: 108px 16px 64px;
  }

  .byall-contact-card {
    border-radius: 24px;
  }

  .byall-brand-panel,
  .byall-form-panel {
    padding: 28px;
  }

  .byall-brand-panel h1 {
    font-size: 2rem;
    letter-spacing: -0.8px;
  }

  .logo-grid img {
    width: 140px;
    height: 88px;
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {

  .byall-contact-page {
    padding: 96px 14px 56px !important;
  }

  .byall-contact-card {
    width: 100% !important;
    border-radius: 22px !important;
  }

  .byall-brand-panel,
  .byall-form-panel {
    padding: 24px 20px !important;
  }

  .byall-brand-panel h1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  .byall-brand-panel p,
  .byall-form-panel p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  input,
  textarea,
  select {
    width: 100% !important;
    font-size: 16px !important;
  }

}
