/* ============================================================
   KELLEY IT SOLUTIONS — Contact Page Styles
   Supplements css/style.css (shared)
   ============================================================ */


/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 40px) 0 44px;
  background: linear-gradient(130deg, #3d1a4a 0%, #5c2870 55%, #3d1a4a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-header::before {
  width: 400px; height: 400px;
  top: -140px; right: -100px;
  background: rgba(147, 0, 147, 0.05);
}
.page-header::after {
  width: 320px; height: 320px;
  bottom: -120px; left: -80px;
  background: rgba(147, 0, 147, 0.03);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.05;
}

.page-header-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ============================================================
   CONTACT LAYOUT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.contact-form-sub {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.req {
  color: var(--purple);
  margin-left: 2px;
}

.optional {
  font-weight: 400;
  color: var(--text-soft);
  font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147, 0, 147, 0.10);
}

/* Honeypot — visually hidden but not display:none (bots detect that) */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* reCAPTCHA widget */
.g-recaptcha {
  margin-bottom: 8px;
}

.form-error {
  color: #c0392b;
  font-size: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fdf0f0;
  border-radius: 6px;
  border-left: 3px solid #c0392b;
}

.btn-submit {
  align-self: flex-start;
  padding: 14px 32px;
  font-size: 15px;
}


/* ============================================================
   CONTACT INFO CARDS
   ============================================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s ease, transform 0.25s var(--ease);
}

.info-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(147, 0, 147, 0.2);
  transform: translateY(-3px);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(147, 0, 147, 0.10), rgba(29, 197, 255, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
}

.info-card h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.info-link {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.info-link:hover {
  color: var(--purple-dark);
}

.info-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-info {
    position: static;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: calc(var(--nav-h) + 24px) 0 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
