/* Contact page — Gadget Box layout, Fone World theme */

.ct-page {
  background: var(--color-bg-alt);
}

/* Hero Section */
.ct-hero {
  background: linear-gradient(135deg, #141414 0%, #2a1516 55%, var(--color-red-dark) 100%);
  color: #fff;
  padding: 2.5rem 0 5.5rem;
  margin-bottom: -4rem; /* Overlap with main content */
}

.ct-hero-content {
  max-width: 680px;
  margin-bottom: 2rem;
}

.ct-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.ct-hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

/* Quick contact cards */
.ct-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 5;
}

.ct-quick-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-quick-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  border-color: var(--color-red);
}

.ct-quick-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red-light);
  color: var(--color-red);
  border-radius: 14px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.ct-quick-card:hover .ct-quick-icon {
  background: var(--color-red);
  color: #fff;
}

.ct-quick-icon-wa {
  background: #e8f8ef;
  color: #16a34a;
}

.ct-quick-card:hover .ct-quick-icon-wa {
  background: #25d366;
}

.ct-quick-card strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.ct-quick-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.3;
}

.ct-quick-email {
  font-size: 0.85rem;
  word-break: break-all;
}

.ct-quick-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

.ct-quick-link {
  color: var(--color-red);
  font-weight: 700;
}

/* Main layout */
.ct-main {
  padding: 1rem 0 5rem;
}

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.ct-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
}

.ct-form-head {
  margin-bottom: 1.5rem;
}

.ct-form-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.ct-form-head p {
  color: var(--color-muted);
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red);
  background: rgba(215, 25, 32, 0.12);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.btn-red:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(215, 25, 32, 0.25);
}

.ct-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ct-side-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ct-side-card h3 {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
}

.ct-side-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ct-side-icon-wa {
  background: #25d366;
  color: #fff;
}

.ct-side-icon-map {
  background: rgba(215, 25, 32, 0.1);
  color: var(--color-red);
}

.ct-side-icon-clock {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.ct-hours {
  width: 100%;
  font-size: 0.95rem;
  text-align: left;
}

.ct-hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.ct-hours tr:last-child td {
  border-bottom: none;
}

.ct-hours td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-text);
}

.ct-map-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.ct-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ct-map-address {
  width: 100%;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.ct-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--color-red);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  margin: 0 auto;
}

.ct-directions-btn:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.ct-qr-icon {
  font-size: 1.5rem;
  color: #25d366;
}

.ct-qr-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.ct-qr-wrap {
  text-align: center;
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 14px;
}

.ct-qr-wrap img {
  mix-blend-mode: multiply;
  max-width: 100%;
  height: auto;
}

.ct-qr-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.ct-qr-link {
  display: inline-block;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  font-size: 0.9rem;
}

.ct-qr-link:hover {
  color: #25d366;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  .ct-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ct-sidebar-col {
    order: -1; /* Sidebar first on tablet if needed, or keep same */
  }
}

@media (max-width: 1024px) {
  .ct-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ct-quick-grid {
    grid-template-columns: 1fr;
  }
  .ct-form-wrap {
    padding: 1.5rem;
  }
}
}

.ct-req {
  color: var(--color-red);
}

.ct-opt {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.ct-field {
  margin-bottom: 1.1rem;
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ct-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.ct-input,
.ct-form .form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct-input:focus,
.ct-form .form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.ct-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.ct-error {
  display: block;
  color: var(--color-red);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.ct-alert-error {
  background: var(--color-red-light);
  border: 1px solid rgba(215, 25, 32, 0.2);
  color: var(--color-red-dark);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.ct-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: var(--color-red);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(215, 25, 32, 0.35);
}

.ct-submit:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 25, 32, 0.4);
}

/* Sidebar */
.ct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 100px;
}

.ct-side-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ct-side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(215, 25, 32, 0.15);
}

.ct-side-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-hours {
  width: 100%;
  font-size: 0.9rem;
}

.ct-hours td {
  padding: 0.4rem 0;
}

.ct-hours td:first-child {
  font-weight: 600;
}

.ct-hours td:last-child {
  text-align: right;
  color: var(--color-muted);
}

/* Map */
.ct-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.ct-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ct-map-address {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.ct-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--color-red);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ct-directions-btn:hover {
  background: var(--color-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* WhatsApp QR */
.ct-side-card-qr {
  text-align: center;
}

.ct-qr-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
}

.ct-qr-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.ct-qr-wrap {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ct-side-card-qr:hover .ct-qr-wrap {
  border-color: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.ct-qr-wrap img {
  display: block;
  width: 200px;
  height: 200px;
}

.ct-qr-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #25d366;
}

.ct-qr-link:hover {
  color: #1da851;
}

@media (max-width: 1100px) {
  .ct-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-layout {
    grid-template-columns: 1fr;
  }

  .ct-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 560px) {
  .ct-quick-grid {
    grid-template-columns: 1fr;
  }

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

  .ct-form {
    padding: 1.5rem;
  }

  .ct-sidebar {
    grid-template-columns: 1fr;
  }
}
