/* contact.css — Kontakt & Improve (shared) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

header {
  background: #1a1a2e;
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }

main {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card-intro {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

label .optional {
  font-weight: 400;
  text-transform: none;
  color: #aaa;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-left: 0.3rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a1a;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74,111,165,0.12);
}

textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-submit {
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover    { background: #2c2c4a; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

#msg {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}

#msg.success { background: #edfaf1; color: #2e7d50; border: 1px solid #4caf7d; }
#msg.error   { background: #fef2f2; color: #c0392b; border: 1px solid #e57373; }

@media (max-width: 820px) {
  header { padding: 0.9rem 1.25rem; }
  main { margin: 1.75rem auto; }
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
  header { padding: 0.7rem 1rem; }
  main { margin: 1rem auto; padding: 0 0.75rem; }
}
