/* Säg hej: polaroider, formulär och kontaktkort */

.contact-section{
  flex-direction: column;
  position: relative;
  top: auto;
  height: auto;
  min-height: 100vh;
  padding-top: 170px;
  padding-bottom: 110px;
}
.chapter p.contact-intro,
.contact-section p.cf-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0 auto 18px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.contact-intro::before,
.cf-kicker::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.contact-headline{
  font-family: var(--font-poster);
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 60px;
}
.contact-headline span{ color: var(--orange); }
.polaroid-rows{
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.polaroid-row{
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 46px;
  margin-bottom: 130px;
}
.polaroid-string{
  position: absolute;
  left: 0;
  top: 4px;
  width: 100%;
  height: 184px;
  display: block;
}
.polaroid{
  position: relative;
  top: 110px;
  width: 260px;
  flex-shrink: 0;
  background: #fdfcfa;
  border: 1px solid rgb(34 30 27 / 26%);
  border-radius: 6px;
  padding: 12px 12px 14px;
  box-shadow: 0 14px 28px rgba(34,30,27,.2);
  text-align: left;
}
.polaroid-pin{
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  width: 21px;
  height: 31px;
  background: var(--orange);
  border: 1px solid rgb(198 86 37);
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15);
}
.polaroid-pin::after{
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255);
}
.polaroid-photo{
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: var(--chip);
}
.polaroid-photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.polaroid-photo .photo-default{ opacity: 0; }
.polaroid:hover .photo-hover{ opacity: 0; }
.polaroid:hover .photo-default{ opacity: 1; }
.polaroid-info{ padding: 10px 4px 2px; }
.polaroid-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
}
.polaroid-title{
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 700px){
  .polaroid{ width: 130px; margin-left: -20px; }
  .polaroid-name{ font-size: 12px; }
  .polaroid-title{ font-size: 10.5px; }
}

/* ---------- Kontakt: varm gradient-bakgrund ---------- */
.chapter.contact-section{
  background: linear-gradient(180deg, var(--peach) 0%, #F8E2CF 40%, #F7DBC6 75%, var(--apricot) 100%);
  overflow: hidden;
}
.contact-section::after{
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(38% 28% at 10% 12%, rgba(255,108,44,.20), transparent 70%),
    radial-gradient(32% 26% at 92% 30%, rgba(230,176,18,.22), transparent 72%),
    radial-gradient(40% 30% at 6% 62%, rgba(0,135,128,.11), transparent 70%),
    radial-gradient(36% 26% at 88% 78%, rgba(209,36,33,.10), transparent 70%),
    radial-gradient(45% 30% at 50% 96%, rgba(255,108,44,.16), transparent 70%);
  animation: contactDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes contactDrift{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100%{ transform: translate3d(-2%, 1.5%, 0) scale(1.02); }
}
.contact-section > *{ position: relative; z-index: 1; }
.contact-section .polaroid{ background: #fffdf9; }

/* ---------- Kontakt: formulär ---------- */
.cf-wrap{
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: 100px;
  text-align: left;
}
.cf-layout{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

/* Formulärkortet */
.cf-card{
  position: relative;
  z-index: 1;
  background: #FFFDF9;
  border-radius: 28px;
  padding: 64px 124px 56px 64px;
  box-shadow: 0 40px 80px -30px rgba(150,70,20,.28), 0 2px 0 rgba(255,255,255,.9) inset;
}
.contact-section p.cf-kicker{ margin: 0 0 14px; }
.cf-headline{
  font-family: var(--font-poster);
  text-transform: uppercase;
  font-size: var(--fs-h3);
  line-height: .95;
  color: var(--ink);
  margin: 0 0 40px;
}
.cf-headline .dot{
  display: inline-block;
  width: .2em; height: .2em;
  margin-left: .08em;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: baseline;
}
@keyframes cfShake{ 25%{ transform: translateX(-4px);} 75%{ transform: translateX(4px);} }
.cf-chips{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cf-chip{ position: relative; cursor: pointer; user-select: none; }
.cf-chip input{ position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span{
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(34,30,27,.12);
  color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .35s cubic-bezier(.34,1.8,.5,1);
}
.cf-chip span::before{
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c);
  transition: transform .45s cubic-bezier(.34,1.8,.5,1), background .3s ease;
}
.cf-chip:hover span{ transform: translateY(-2px); border-color: var(--c); }
.cf-chip:hover span::before{ transform: scale(1.35); }
.cf-chip input:checked + span{ background: var(--c); color: #fff; border-color: transparent; }
.cf-chip input:checked + span::before{ background: #fff; transform: scale(.6); }
.cf-chip input:focus-visible + span{ outline: 2px solid var(--ink); outline-offset: 3px; }

.cf-more{
  display: block;
  width: 100%;
  margin-top: 26px;
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #F8F3EC;
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 16px 20px;
  outline: none;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.cf-more::placeholder{ color: var(--ink-soft); }
.cf-more:focus{ background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,108,44,.12); }

.cf-footer{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 30px; flex-wrap: wrap;
}

/* Skicka-knapp: pill med boll som fyller knappen vid hover */
.cf-submit{
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  height: 60px;
  padding: 0 8px 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 14px 30px -14px rgba(34,30,27,.6);
}
.cf-submit-label{ position: relative; z-index: 2; }
.cf-submit-ball{
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.cf-submit-ball::before{
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  z-index: -1;
  transition: width .5s cubic-bezier(.7,0,.2,1), height .5s cubic-bezier(.7,0,.2,1), right .5s cubic-bezier(.7,0,.2,1);
}
.cf-submit-ball svg{
  position: relative;
  z-index: 2;
  width: 18px; height: 18px;
  transition: transform .45s cubic-bezier(.34,1.6,.5,1);
}
.cf-submit:hover .cf-submit-ball::before{ width: 520px; height: 520px; right: -200px; }
.cf-submit:hover .cf-submit-ball svg{ transform: translateX(3px) rotate(-45deg); }
.cf-submit:hover{ box-shadow: 0 18px 36px -14px rgba(236,102,7,.7); }
.cf-submit:active{ transform: scale(.97); }
.cf-submit:focus-visible{ outline: 2px solid var(--orange); outline-offset: 4px; }

.cf-burst{ position: fixed; border-radius: 50%; pointer-events: none; z-index: 200; }

.cf-thanks{ display: none; padding: 40px 0 20px; }
.cf-thanks h4{
  font-family: var(--font-poster);
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: .95;
  color: var(--ink);
}
.cf-thanks h4 span{ color: var(--orange); }
.contact-section .cf-thanks p{
  margin: 18px 0 0;
  max-width: 440px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cf-card.sent form{ display: none; }
.cf-card.sent{ display: flex; align-items: center; }
.cf-card.sent .cf-thanks{ display: block; animation: cfIn .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes cfIn{ from{ opacity: 0; transform: translateY(20px); } to{ opacity: 1; transform: none; } }

/* Kontaktkortet – mörkt, överlappar formuläret */
.cf-info{
  position: relative;
  z-index: 2;
  margin: 110px 0 0 -90px;
  background: var(--cocoa);
  color: #F4EDE6;
  border-radius: 28px;
  padding: 52px 44px 44px;
  box-shadow: 0 40px 70px -28px rgba(34,30,27,.55);
}
.cf-info h3{
  font-family: var(--font-poster);
  text-transform: uppercase;
  font-size: var(--fs-h3);
  line-height: .95;
  color: #fff;
  margin-bottom: 16px;
}
.cf-info h3 .dot{
  display: inline-block; width: .2em; height: .2em; margin-left: .08em;
  border-radius: 50%; background: var(--orange);
}
.contact-section .cf-info p.cf-info-lead{
  max-width: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,237,230,.7);
  margin-bottom: 30px;
}
.cf-person{
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.cf-person img{
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--cocoa), 0 0 0 5px var(--orange);
}
.cf-person > a{ display: block; flex-shrink: 0; line-height: 0; border-radius: 50%; }
.cf-person-name{ font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.cf-person-status{ display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(244,237,230,.65); margin-top: 3px; }
.cf-person-status::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DD68C;
  box-shadow: 0 0 0 0 rgba(61,214,140,.6);
  animation: cfPulse 2s ease-out infinite;
}
@keyframes cfPulse{ 0%{ box-shadow: 0 0 0 0 rgba(61,214,140,.55);} 100%{ box-shadow: 0 0 0 9px rgba(61,214,140,0);} }
.cf-info-list{ list-style: none; display: grid; gap: 18px; }
.cf-info-list a,
.cf-info-list div{
  display: flex; align-items: flex-start; gap: 14px;
  color: #F4EDE6; text-decoration: none;
  font-size: 14px; line-height: 1.5;
}
.cf-info-list strong{ display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.cf-info-list small{ color: rgba(244,237,230,.62); font-size: 13px; }
.cf-ico{
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c);
  transition: transform .4s cubic-bezier(.34,1.8,.5,1);
}
.cf-ico svg{ width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-info-list a:hover .cf-ico{ transform: scale(1.15) rotate(-8deg); }
.cf-info-list a:hover strong{ color: var(--orange); }
.cf-social{ display: flex; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.cf-social a{
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: background .3s ease, border-color .3s ease, transform .35s cubic-bezier(.34,1.8,.5,1);
}
.cf-social a:hover{ background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }
.cf-social svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Rundade "piller" som sticker ut från korten */
.cf-pill{
  position: absolute;
  height: 22px;
  border-radius: 999px;
  background: var(--c);
  pointer-events: none;
  animation: cfPillSlide 6s ease-in-out infinite alternate;
}
.cf-pill.sm{ height: 14px; }
@keyframes cfPillSlide{ from{ transform: translateX(0); } to{ transform: translateX(var(--dx, 14px)); } }
.cf-pill-dot{
  position: absolute; border-radius: 50%; background: var(--c); pointer-events: none;
  animation: cfPillSlide 5s ease-in-out infinite alternate;
}

@media (max-width: 980px){
  .cf-layout{ grid-template-columns: 1fr; }
  .cf-card{ padding: 48px 32px 44px; }
  .cf-info{ margin: -30px 20px 0 20px; }
}
@media (max-width: 560px){
  .cf-card{ padding: 40px 22px 36px; border-radius: 22px; }
  .cf-info{ margin: -24px 10px 0; padding: 40px 26px 32px; }
  .cf-submit{ width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce){
  .contact-section::after, .cf-pill, .cf-pill-dot, .cf-person-status::before{ animation: none; }
}
