/* DateOrSoulmate Styles */

:root{
  --bg:#f9f9fb;
  --surface:#fff;
  --text:#1a1a1a;
  --muted:#6b6b6b;
  --brand:#1a1a1a;

  --accent:#ff8a5b;
  --soft:rgba(255,138,91,.1);

  --border:rgba(43,34,48,.12);
  --focus:rgba(255,138,91,.28);
}

/* Reset / base */
*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Prevent overflow anywhere */
h1, h2, h3, p, span, label, input, button, textarea{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Layout wrapper */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:28px;
}

/* Top navigation */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--brand);
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--accent);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  font-size:13px;
  border-radius:999px;
  background:var(--soft);
  color:var(--brand);
}

/* Main grid */
.hero{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:22px;
  margin-top:26px;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns:1fr;
  }
}

/* Sections (simple, not heavy cards) */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:22px;
}

/* Headings */
h1{
  font-size:36px;
  line-height:1.15;
  margin:6px 0 10px;
}

@media (max-width:520px){
  h1{ font-size:30px; }
}

.sub{
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

/* Highlight pills */
.kicker{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Form */
.form{
  margin-top:18px;
}

.row{
  display:flex;
  gap:10px;
  margin-top:10px;
}

@media (max-width:520px){
  .row{
    flex-direction:column;
  }
}

/* Inputs & buttons */
input, button, textarea{
  font:inherit;
}

input{
  flex:1;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  outline:none;
}

input::placeholder{
  color:rgba(107,107,107,.75);
}

input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--focus);
}

/* Primary action button */
button{
  padding:12px 16px;
  border-radius:12px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

button:hover{ filter:brightness(1.04); }
button:active{ transform:translateY(1px); }
button:disabled{ opacity:.6; cursor:not-allowed; }

/* Status / helper text */
.muted{
  color:var(--muted);
  font-size:14px;
}

#msg{
  margin-top:12px;
  line-height:1.4;
}

/* Success/error states */
.muted.ok{
  color:#059669;
}

.muted.err{
  color:#dc2626;
}

/* Grid on right column */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}

@media (max-width:900px){
  .grid{
    grid-template-columns:1fr;
  }
}

.mini{
  padding:14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
}

.mini h3{
  margin:0 0 6px;
  font-size:16px;
}

.mini p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

/* FAQ */
.section{
  margin-top:18px;
}

.section h2{
  margin:0 0 10px;
  font-size:18px;
}

details{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
}

details + details{
  margin-top:10px;
}

summary{
  cursor:pointer;
  font-weight:700;
}

summary::-webkit-details-marker{
  display:none;
}

/* Footer */
footer{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  color:var(--muted);
}

.tiny-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}

/* Sidebar should feel lighter than main form */
.hero > aside.card{
  background:transparent;
  border:none;
  padding:0;
}

/* Mini feature blocks – lighter, rounded */
.mini{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}

/* Sidebar spacing */
.hero aside .grid{
  margin-top:0;
}

.hero aside .section{
  margin-top:24px;
}

/* FAQ rows – subtle, list-like */
details{
  background:#fff;
  border-radius:12px;
}

summary{
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

/* Triangle indicator */
summary::before{
  content:"▶";
  font-size:11px;
  transform:translateY(-1px);
}

details[open] summary::before{
  content:"▼";
}

/* Sidebar headings slightly lighter */
.hero aside h3{
  font-size:15px;
}

.hero aside h2{
  font-size:17px;
}

/* Screen reader only utility */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ============================================
   POLL SECTION STYLES
   ============================================ */

.poll-section{
  margin-top:24px;
}

.poll-divider{
  height:1px;
  background:var(--border);
  margin-bottom:20px;
}

.poll-title{
  font-size:18px;
  font-weight:700;
  margin:0 0 6px;
  color:var(--text);
}

.poll-subtitle{
  font-size:15px;
  color:var(--muted);
  margin:0 0 16px;
}

/* Poll options container */
.poll-options{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Individual poll option */
.poll-option{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  transition:border-color 0.15s ease, background-color 0.15s ease;
}

.poll-option:hover{
  border-color:var(--accent);
  background:var(--soft);
}

/* Hide the default radio button */
.poll-option input[type="radio"]{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

/* Custom radio button */
.poll-radio{
  width:20px;
  height:20px;
  border:2px solid var(--border);
  border-radius:50%;
  background:#fff;
  position:relative;
  flex-shrink:0;
  transition:border-color 0.15s ease;
}

.poll-option:hover .poll-radio{
  border-color:var(--accent);
}

/* Checked state */
.poll-option input[type="radio"]:checked + .poll-radio{
  border-color:var(--accent);
}

.poll-option input[type="radio"]:checked + .poll-radio::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:10px;
  height:10px;
  background:var(--accent);
  border-radius:50%;
}

/* Selected option styling */
.poll-option:has(input[type="radio"]:checked){
  border-color:var(--accent);
  background:var(--soft);
}

/* Focus state for accessibility */
.poll-option input[type="radio"]:focus + .poll-radio{
  box-shadow:0 0 0 4px var(--focus);
}

.poll-label{
  font-size:15px;
  color:var(--text);
  line-height:1.4;
}

/* Open feedback textarea container */
.open-feedback-container{
  margin-top:16px;
}

/* Textarea styling */
textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  outline:none;
  resize:vertical;
  min-height:80px;
  font-size:14px;
  line-height:1.5;
}

textarea::placeholder{
  color:rgba(107,107,107,.75);
}

textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--focus);
}

/* Poll submit button */
.poll-btn{
  margin-top:16px;
  width:100%;
}

@media (min-width:520px){
  .poll-btn{
    width:auto;
  }
}

/* Poll message */
.poll-msg{
  margin-top:10px;
}

/* Poll thanks message */
.poll-thanks{
  margin-top:24px;
}

.poll-thanks-text{
  font-size:15px;
  color:var(--text);
  margin:0;
  padding:16px;
  background:var(--soft);
  border-radius:12px;
  text-align:center;
}

/* Animation for poll appearance */
@keyframes slideDown{
  from{
    opacity:0;
    transform:translateY(-10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.poll-section[style*="block"]{
  animation:slideDown 0.3s ease-out;
}

.poll-thanks[style*="block"]{
  animation:slideDown 0.3s ease-out;
}