/* ===== CONTACT PAGE STYLES ===== */
:root {
  --text: #e6eef8;
  --muted: #a7b3c5;
  --accent: #4f9ff8;
  --accent-2: #7ee7b5;
  --card-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.12);
  --radius: 12px;
  --surface-glow: 0 4px 24px rgba(0,0,0,0.2);
}

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 32px);
  margin-bottom: clamp(32px, 6vw, 48px);
  max-width: min(1200px, 95%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===== CARDS ===== */
.host-card,
.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 32px);
  box-shadow: var(--surface-glow);
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.host-card:hover,
.contact-form-card:hover {
  border-color: rgba(79,159,248,0.3);
}

/* ===== HOST CARD ===== */
.host-photo {
  width: clamp(120px, 25vw, 160px);
  height: clamp(120px, 25vw, 160px);
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto clamp(16px, 3vw, 20px);
  border: 3px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.host-card h2,
.contact-form-card h2 {
  margin-bottom: clamp(12px, 2.5vw, 16px);
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.host-card p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: clamp(16px, 3vw, 20px);
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.host-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 12px);
  justify-content: center;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 1vw, 6px);
  padding: clamp(8px, 2vw, 10px) clamp(14px, 3vw, 16px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(17,24,39,0.6));
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(79,159,248,0.3);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  white-space: nowrap;
}

.contact-chip:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(30,58,138,0.5), rgba(17,24,39,0.7));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,159,248,0.25);
}

/* ===== CONTACT FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 20px);
  margin-bottom: clamp(20px, 3vw, 24px);
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 8px);
  width: 100%;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form-card label {
  color: var(--muted);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.contact-form-card input,
.contact-form-card textarea {
  background: rgba(17,24,39,0.6);
  color: #fff;
  border: 1px solid rgba(79,159,248,0.3);
  border-radius: 10px;
  padding: clamp(10px, 2vw, 12px) clamp(14px, 3vw, 16px);
  outline: none;
  font-family: inherit;
  font-size: clamp(13px, 2.5vw, 14px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 100%;
  box-sizing: border-box;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: rgba(167,179,197,0.5);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,159,248,0.18);
  background: rgba(17,24,39,0.8);
}

.contact-form-card textarea {
  resize: vertical;
  min-height: clamp(100px, 20vw, 120px);
  font-family: inherit;
  line-height: 1.5;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 16px);
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #062037;
  padding: clamp(12px, 2.5vw, 14px) clamp(24px, 5vw, 32px);
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79,159,248,0.25);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79,159,248,0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Required field asterisk */
.req {
  color: #ff6b6b;
  margin-left: 4px;
  font-weight: 700;
}

.form-note {
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  text-align: left;
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact-grid { 
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 24px);
  }
  
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  
  .host-card {
    text-align: center;
  }
  
  .host-contacts {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-form-card,
  .host-card {
    padding: clamp(18px, 4vw, 24px);
  }
  
  .host-photo {
    width: clamp(100px, 22vw, 120px);
    height: clamp(100px, 22vw, 120px);
  }
  
  .btn-primary {
    width: 100%;
  }
  
  /* Stack button and note on mobile */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(10px, 2vw, 12px);
  }
  
  .form-note {
    text-align: center;
    min-width: 0;
  }
  
  .contact-chip {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .form-grid {
    gap: clamp(12px, 2.5vw, 16px);
  }
  
  .host-contacts {
    flex-direction: column;
    gap: clamp(8px, 2vw, 10px);
  }
  
  .contact-chip {
    width: 100%;
  }
}

/* Ensure header nav spacing matches other pages */
.header nav { gap: var(--nav-gap, 2rem) !important; }
.header nav a { font-size: 1rem !important; letter-spacing: 0 !important; margin: 0 !important; }