/* ============================================================
   stage5.css  |  Contact · Footer · Global Polish
   ============================================================ */

/* ════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h3 { font-size: 22px; margin-bottom: var(--space-md); line-height: 1.4; }
.contact-info p  { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: var(--space-xl); }

.contact-details { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.contact-detail-item {
  display: flex; align-items: center; gap: var(--space-md);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 13px var(--space-md);
  text-decoration: none; color: inherit; transition: all var(--transition);
}
.contact-detail-item:hover { border-color: var(--border-accent); background: var(--accent-light); transform: translateX(4px); color: inherit; }

.contact-detail-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: background var(--transition);
}
.contact-detail-item:hover .contact-detail-icon { background: #fff; }

.contact-detail-text { flex: 1; min-width: 0; }
.contact-detail-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-subtle); font-family: var(--font-mono); display: block; }
.contact-detail-value { font-size: 14px; font-weight: 600; color: var(--text-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-detail-arrow { font-size: 16px; color: var(--text-subtle); transition: transform var(--transition), color var(--transition); }
.contact-detail-item:hover .contact-detail-arrow { transform: translate(3px, -2px); color: var(--accent-primary); }

.contact-socials-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }
.contact-socials { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.contact-social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); background: var(--bg-card);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.contact-social-link:hover { border-color: var(--border-accent); background: var(--accent-light); color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Form */
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: var(--space-xl); box-shadow: var(--shadow-md);
}
.contact-form-title    { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.contact-form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-xl); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group  { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-group:last-of-type { margin-bottom: 0; }
.form-label  { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-label span { color: var(--accent-primary); margin-left: 2px; }

.form-input, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--text-primary);
  font-size: 14px; font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); }
.form-input:focus, .form-textarea:focus { border-color: var(--accent-primary); background: var(--bg-card); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-input.error, .form-textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-error-msg { font-size: 12px; color: #ef4444; display: none; font-family: var(--font-mono); }
.form-error-msg.visible { display: block; }

.form-select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--text-primary);
  font-size: 14px; font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; cursor: pointer; appearance: none;
  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='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-select:focus { border-color: var(--accent-primary); background-color: var(--bg-card); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.form-note       { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

.btn-submit { min-width: 160px; justify-content: center; position: relative; overflow: hidden; }
.btn-submit .btn-text    { transition: opacity var(--transition); }
.btn-submit .btn-loading { position: absolute; display: none; align-items: center; gap: 8px; }
.btn-submit.sending .btn-text    { opacity: 0; }
.btn-submit.sending .btn-loading { display: flex; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-toast { display: none; align-items: center; gap: 10px; padding: 12px var(--space-md); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-top: var(--space-md); }
.form-toast.visible    { display: flex; }
.form-toast.success    { background: #f0fdf4; border: 1px solid rgba(22,101,52,0.2); color: #166534; }
.form-toast.error-toast { background: #fef2f2; border: 1px solid rgba(239,68,68,0.2); color: #991b1b; }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-info { order: 2; } .contact-form-wrap { order: 1; } }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } .contact-form-wrap { padding: var(--space-lg); } .form-submit-row { flex-direction: column; align-items: stretch; } .btn-submit { width: 100%; } }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
#footer { background: #0f172a; color: #94a3b8; }

.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-2xl) var(--space-xl) var(--space-lg); }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--space-xl);
}

.footer-brand-logo  { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); text-decoration: none; }
.footer-brand-mark  { width: 38px; height: 38px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.footer-brand-name  { font-size: 16px; font-weight: 700; color: #f1f5f9; }
.footer-brand-desc  { font-size: 14px; line-height: 1.7; color: #64748b; margin-bottom: var(--space-lg); max-width: 280px; }
.footer-brand-socials { display: flex; gap: var(--space-sm); }
.footer-social-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: 16px; text-decoration: none; transition: all var(--transition);
}
.footer-social-icon:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; transform: translateY(-2px); }

.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #f1f5f9; margin-bottom: var(--space-md); font-family: var(--font-mono); }
.footer-nav-list  { display: flex; flex-direction: column; gap: 9px; }
.footer-nav-link  { font-size: 14px; color: #64748b; text-decoration: none; transition: color var(--transition), padding-left var(--transition); display: inline-block; }
.footer-nav-link:hover { color: #c4b5fd; padding-left: 4px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.footer-copyright { font-size: 13px; color: #475569; }
.footer-copyright a { color: #c4b5fd; text-decoration: none; }
.footer-copyright a:hover { text-decoration: underline; }
.footer-made-with { font-size: 13px; color: #475569; font-family: var(--font-mono); display: flex; align-items: center; gap: 5px; }
.footer-heart { color: #f43f5e; animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.2); } 28% { transform: scale(1); } 42% { transform: scale(1.15); } 56% { transform: scale(1); } }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .footer-inner { padding: var(--space-xl) var(--space-md) var(--space-lg); } .footer-bottom { flex-direction: column; text-align: center; } }