:root {
  --bg:            #f8f8f9;
  --primary:       #a30050;
  --primary-dark:  #7b1d48;
  --card-bg:       #ffffff;
  --text:          #111827;
  --radius:        0.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul { margin: 0; }
ul { padding-left: 1.25rem; }
img { max-width: 100%; display: block; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-top: 5rem;
}

.box {
  width: 100%;
  max-width: 780px;
  padding-inline: 1rem;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--primary);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo { height: 32px; }

.card {
  background: var(--card-bg);
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 25px rgba(0,0,0,.08);
  text-align: center;
}

.title {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 200px;
  height: 2.75rem;
  line-height: 2.75rem;
  padding-inline: 0.8rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  resize: none;
}

input[type="email"]:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(152,41,88,.25);
}

button {
  flex: 0 0 auto;
  padding: 0.62rem 1.15rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

button:hover,
button:focus-visible { background: var(--primary-dark); }

.output-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.4rem;
}

.output { font-weight: 500; color: var(--primary-dark); }
.output.success { color: forestgreen; }

/* Copy button */
.copy-btn {
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--primary);
  color: #fff;
}

/* Düğme hidden ise tamamen gizle */
.copy-btn[hidden] { display: none !important; }

.copy-msg { font-size: 0.9rem; color: forestgreen; }

.survey-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.62rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.survey-btn:hover,
.survey-btn:focus-visible { background: var(--primary); color: #fff; }

.survey-error { margin-top: 0.5rem; color: #c00; font-weight: 500; }

/* Info banners */
.info-banner {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.75rem 3.5rem 1.75rem 1.75rem;
  text-align: left;
}

.info-banner h3 { font-size: 1.25rem; font-weight: 600; color: var(--primary); margin-bottom: 0.9rem; }
.info-banner .info-content { display: block; }

.info-banner.collapsed {
  padding: 1.25rem 3.5rem 1.25rem 1.75rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}
.info-banner.collapsed .info-content { display: none; }

.info-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.15rem 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.footer {
  background: #e9e9e9;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: #555;
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .card { padding: 1.5rem 1.25rem; }
  .info-banner { padding-right: 3.25rem; }
  .form { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  input[type="email"], button[type="submit"], .survey-btn { width: 100%; flex: 0 0 auto; }
  .copy-btn { width: 100%; }
}

.info-banner .info-content a {
  color: var(--primary);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.info-banner .info-content a:hover,
.info-banner .info-content a:focus-visible { color: var(--primary-dark); }
