/* =========================================================
   WHATSAPP QUOTE FORM
   WordPress dönüşümünde ayrı CSS olarak taşınabilir.
   ========================================================= */

.whatsapp-quote {
  position: relative;

  padding-block:
    clamp(5.5rem, 9vw, 8.5rem);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(179, 154, 102, 0.11),
      transparent 25rem
    ),
    linear-gradient(
      180deg,
      #f3ede4,
      #fffdf8
    );
}

.whatsapp-quote::after {
  content: "";

  position: absolute;

  right: -13rem;
  bottom: -15rem;

  width: 32rem;
  aspect-ratio: 1;

  border:
    1px solid rgba(105, 36, 49, 0.055);

  border-radius: 50%;

  box-shadow:
    0 0 0 5rem rgba(179, 154, 102, 0.012),
    0 0 0 10rem rgba(105, 36, 49, 0.006);

  pointer-events: none;
}

.whatsapp-quote-layout {
  position: relative;
  z-index: 2;

  width:
    min(1180px, calc(100% - 5.5rem));

  display: grid;
  grid-template-columns:
    minmax(16rem, 0.72fr)
    minmax(0, 1.28fr);

  gap:
    clamp(3rem, 7vw, 7rem);

  align-items: center;

  margin-inline: auto;
}


/* =========================================================
   LEFT
   ========================================================= */

.whatsapp-quote-intro {
  position: relative;

  max-width: 35rem;
}

.whatsapp-quote-kicker {
  margin:
    0
    0
    0.9rem;

  color:
    var(--color-primary);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.whatsapp-quote-intro h2 {
  max-width: 11ch;

  margin:
    0
    0
    1.4rem;

  color:
    var(--color-primary-dark);

  font-family:
    var(--font-serif);

  font-size:
    clamp(2.4rem, 4.2vw, 4.3rem);

  font-weight: 500;
  line-height: 1.03;

  letter-spacing: -0.03em;
}

.whatsapp-quote-intro > p:not(.whatsapp-quote-kicker) {
  max-width: 31rem;

  margin: 0;

  color:
    var(--color-text-soft);

  line-height: 1.78;
}

.whatsapp-quote-contact {
  width: fit-content;

  display: flex;
  flex-direction: column;

  gap: 0.25rem;

  margin-top: 2rem;
  padding:
    1rem
    1.2rem;

  border:
    1px solid rgba(105, 36, 49, 0.13);

  background:
    rgba(255, 253, 248, 0.72);
}

.whatsapp-quote-contact span {
  color:
    var(--color-primary);

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.whatsapp-quote-contact strong {
  color:
    var(--color-primary-dark);

  font-family:
    var(--font-serif);

  font-size: 1.3rem;
  font-weight: 600;
}

.whatsapp-quote-decoration span {
  position: absolute;

  pointer-events: none;
}

.whatsapp-quote-decoration span:first-child {
  left: -2rem;
  bottom: -3rem;

  width: 4.5rem;
  height: 4.5rem;

  border-left:
    3px solid rgba(105, 36, 49, 0.82);

  border-bottom:
    3px solid rgba(105, 36, 49, 0.82);
}

.whatsapp-quote-decoration span:last-child {
  left: 2.5rem;
  bottom: -3rem;

  width: 7rem;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(179, 154, 102, 0.55),
      transparent
    );
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.whatsapp-quote-panel {
  position: relative;

  padding:
    clamp(1.5rem, 3vw, 2.4rem);

  background:
    radial-gradient(
      circle at 91% 8%,
      rgba(179, 154, 102, 0.13),
      transparent 11rem
    ),
    linear-gradient(
      145deg,
      #fffdf8,
      #eee2d2
    );

  border:
    1px solid rgba(105, 36, 49, 0.14);

  box-shadow:
    0 1.8rem 4rem rgba(40, 15, 20, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.whatsapp-quote-panel::before {
  content: "";

  position: absolute;

  top: -1rem;
  right: -1rem;

  width:
    clamp(7rem, 12vw, 10rem);

  height:
    clamp(5rem, 9vw, 7rem);

  border-top:
    1px solid rgba(179, 154, 102, 0.68);

  border-right:
    1px solid rgba(179, 154, 102, 0.68);

  pointer-events: none;
}

.whatsapp-quote-panel::after {
  content: "";

  position: absolute;

  left: -0.8rem;
  bottom: -0.8rem;

  width: 3.7rem;
  height: 3.7rem;

  border-left:
    3px solid rgba(105, 36, 49, 0.84);

  border-bottom:
    3px solid rgba(105, 36, 49, 0.84);

  pointer-events: none;
}


/* =========================================================
   FIELDS
   ========================================================= */

.quote-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    1.1rem;
}

.quote-field {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.quote-field-full {
  grid-column:
    1 / -1;
}

.quote-field label {
  display: flex;
  align-items: center;

  gap: 0.45rem;

  color:
    var(--color-primary-dark);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.035em;
}

.quote-field label > span {
  color:
    var(--color-primary);
}

.quote-field label small {
  margin-left: auto;

  color:
    rgba(72, 22, 31, 0.45);

  font-size: 0.58rem;
  font-weight: 500;

  letter-spacing: 0.02em;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;

  color:
    var(--color-primary-dark);

  background:
    rgba(255, 253, 248, 0.82);

  border:
    1px solid rgba(105, 36, 49, 0.15);

  border-radius: 0;

  outline: 0;

  font-family:
    var(--font-sans);

  font-size: 0.84rem;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.quote-field input,
.quote-field select {
  min-height: 3.35rem;

  padding:
    0
    0.9rem;
}

.quote-field textarea {
  min-height: 8.5rem;

  padding:
    0.85rem
    0.9rem;

  resize:
    vertical;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color:
    rgba(72, 22, 31, 0.42);
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  background:
    #fffdf8;

  border-color:
    rgba(105, 36, 49, 0.52);

  box-shadow:
    0 0 0 3px rgba(105, 36, 49, 0.06);
}


/* =========================================================
   FORM FOOT
   ========================================================= */

.quote-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    1.5rem;

  margin-top:
    1.4rem;

  padding-top:
    1.4rem;

  border-top:
    1px solid rgba(105, 36, 49, 0.11);
}

.quote-form-bottom > p {
  max-width: 18rem;

  margin: 0;

  color:
    rgba(72, 22, 31, 0.55);

  font-size: 0.64rem;
  line-height: 1.55;
}

.quote-submit {
  min-height: 3.4rem;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.8rem;

  padding:
    0.45rem
    1rem;

  color:
    #fffaf0;

  background:
    linear-gradient(
      135deg,
      #571521,
      #7f2938
    );

  border:
    1px solid rgba(105, 36, 49, 0.8);

  cursor: pointer;

  font-family:
    var(--font-sans);

  font-size: 0.71rem;
  font-weight: 700;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.quote-submit:hover {
  transform:
    translateY(-0.12rem);

  background:
    linear-gradient(
      135deg,
      #641925,
      #913346
    );

  box-shadow:
    0 0.8rem 1.8rem rgba(65, 17, 26, 0.16);
}

.quote-submit-icon {
  width: 1.7rem;
  height: 1.7rem;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(255, 250, 240, 0.25);
}

.quote-submit-icon svg {
  width: 1rem;
  height: 1rem;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.quote-submit:focus-visible {
  outline:
    2px solid var(--color-accent);

  outline-offset:
    0.25rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

  .whatsapp-quote-layout {
    width:
      calc(100% - 3rem);
  }

}


@media (max-width: 820px) {

  .whatsapp-quote-layout {
    grid-template-columns: 1fr;
  }

  .whatsapp-quote-intro {
    max-width: 43rem;
  }

}


@media (max-width: 600px) {

  .whatsapp-quote-layout {
    width:
      calc(100% - 1.5rem);
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .quote-field-full {
    grid-column: auto;
  }

  .quote-form-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-form-bottom > p {
    max-width: none;
  }

  .quote-submit {
    width: 100%;
  }

}
