/* ============================================
   CONTACT PAGE - PAGE-SPECIFIC STYLESHEET
   ============================================
   Common styles (fonts, nav, footer) in common.css
   This file contains only contact page-specific styles
   ============================================ */

/* ============================================
   HERO OVERRIDE (CMS page-header)
   Gradient background instead of bg_image
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  padding: 120px 20px 80px;
  margin-bottom: 0;
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 40px;
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  min-width: 260px;
  flex: 1;
  max-width: 320px;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 20, 40, 0.12);
  text-decoration: none;
  border-color: var(--color-brand-light);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--color-brand);
}

.contact-card:hover .contact-card-icon svg {
  color: white;
  stroke: white;
  fill: white;
}

.contact-card-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-brand);
  transition: all 0.3s ease;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4em;
  margin-bottom: 8px;
  color: var(--color-text-darker);
}

.contact-card p {
  font-size: 1.1em;
  color: var(--color-muted);
  margin: 0;
}

/* Static card (no hover link effect) */
.contact-card-static {
  cursor: default;
}

.contact-card-static:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Email link */
.email-link {
  font-size: 1.1em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  user-select: text;
}

.email-link:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .contact-cards {
    gap: 24px;
  }

  .contact-card {
    padding: 40px 30px;
    min-width: 240px;
  }

  .contact-card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .contact-card-icon svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 300px;
    padding: 36px 24px;
  }
}

/* ============================================
   CONTACT FORM BLOCK
   Styles for CMS contact form block
   (template: frontend/blocks/contact.tpl)
   ============================================ */

.contact-section {
  padding: 40px 0;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Field group */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-darker);
  letter-spacing: 0.02em;
}

/* Input & textarea shared styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(var(--color-brand-rgb), 0.12);
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

/* Textarea */
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5em;
}

/* Submit button */
.contact-submit {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result message */
.contact-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.contact-result.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-result.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Honeypot — hide off-screen */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Field validation error */
.contact-field-error {
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 4px;
}

/* ============================================
   CONTACT FORM — RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .contact-section {
    padding: 30px 0;
  }

  .contact-submit {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 24px 0;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    padding: 10px 14px;
  }

  .contact-submit {
    padding: 12px 24px;
  }
}
