body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
}

.app {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 2rem;
}

.form-section, .preview-section {
  flex: 1 1 320px;
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

h1, h2 {
  margin-top: 0;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

input, textarea {
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  font-size: 0.9rem;
}

textarea {
  min-height: 60px;
  resize: vertical;
}

.buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

button {
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #0052cc;
  color: #fff;
  font-size: 0.9rem;
}

button:hover {
  background: #003f99;
}

/* Card preview */

.card-wrapper {
  display: flex;
  justify-content: center;
}

/* Portrait card */
.card {
  background: #1c2a3a;
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 320px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Centre header and main content */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.logo {
  max-width: 100px;
  max-height: 60px;
  margin-bottom: 0.5rem;
}

.company-logo-text {
  font-weight: 700;
  font-size: 1.4rem;
}

.card-main {
  text-align: center;
}

.card-main .name {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-main .title {
  font-size: 0.95rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* Contact details */
.card-contact {
  margin-top: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.icon {
  width: 1.2rem;
  text-align: center;
  margin-right: 0.4rem;
}

/* Socials and tagline */
.card-social {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-right: 0.3rem;
  background: #ffffff;
  color: #1c2a3a;
  text-decoration: none;
}

.card-tagline {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: center;
}

/* QR at bottom, centred */
.card-qr {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}