﻿/* Motherhood Diaries Simple Form - frontend styles */

:root {
  --ppypwl-primary: #ebc8be;
  --ppypwl-primary-dark: #d99d96;
  --ppypwl-secondary: #dfa89d;
  --ppypwl-text: #333333;
  --ppypwl-muted: #666666;
  --ppypwl-border: #e7dfda;
  --ppypwl-surface: #ffffff;
  --ppypwl-surface-soft: #fffcf9;
  --ppypwl-shadow: 0 16px 36px rgba(36, 31, 28, 0.1);
}

.ppypwl-btn-trigger,
.ppypwl-btn-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: "Lato", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #2d2623;
  background: linear-gradient(135deg, var(--ppypwl-primary) 0%, var(--ppypwl-secondary) 100%);
  box-shadow: 0 10px 22px rgba(217, 157, 150, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ppypwl-btn-trigger:hover,
.ppypwl-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 157, 150, 0.32);
  filter: saturate(1.02);
}

.ppypwl-btn-trigger:active,
.ppypwl-btn-submit:active {
  transform: translateY(0);
}

.ppypwl-btn-trigger:focus,
.ppypwl-btn-submit:focus {
  outline: none;
}

.ppypwl-btn-trigger:focus-visible,
.ppypwl-btn-submit:focus-visible {
  box-shadow: 0 0 0 4px rgba(235, 200, 190, 0.45), 0 14px 28px rgba(217, 157, 150, 0.3);
}

.ppypwl-btn-submit[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.ppypwl-join-form {
  width: 100%;
  font-family: "Lato", "Noto Sans", sans-serif;
  color: var(--ppypwl-text);
}

.ppypwl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ppypwl-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ppypwl-join-form-inline {
  max-width: 640px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--ppypwl-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--ppypwl-surface-soft) 100%);
  box-shadow: var(--ppypwl-shadow);
}

.ppypwl-join-form:not(.ppypwl-join-form-hero) .ppypwl-group {
  margin-bottom: 14px;
}

.ppypwl-join-form:not(.ppypwl-join-form-hero) label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4d453f;
  margin: 0 0 7px;
  letter-spacing: 0.02em;
}

.ppypwl-join-form:not(.ppypwl-join-form-hero) input[type="text"],
.ppypwl-join-form:not(.ppypwl-join-form-hero) input[type="email"],
.ppypwl-join-form:not(.ppypwl-join-form-hero) select,
.ppypwl-join-form:not(.ppypwl-join-form-hero) textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ppypwl-border);
  background: #fbf8f6;
  color: var(--ppypwl-text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ppypwl-join-form:not(.ppypwl-join-form-hero) textarea {
  resize: vertical;
  min-height: 96px;
}

.ppypwl-join-form:not(.ppypwl-join-form-hero) input:focus,
.ppypwl-join-form:not(.ppypwl-join-form-hero) select:focus,
.ppypwl-join-form:not(.ppypwl-join-form-hero) textarea:focus {
  outline: none;
  border-color: var(--ppypwl-primary-dark);
  box-shadow: 0 0 0 4px rgba(235, 200, 190, 0.35);
  background: #fff;
}

.ppypwl-group-consent {
  margin-top: 12px;
}

.ppypwl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ppypwl-muted);
  user-select: none;
  line-height: 1.45;
}

.ppypwl-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.ppypwl-consent input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  accent-color: #d7aca0;
  cursor: pointer;
  flex: 0 0 auto;
}

.ppypwl-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(216, 180, 168, 0.75);
  outline-offset: 2px;
}

.ppypwl-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.ppypwl-message.is-success {
  color: #1f7a63;
}

.ppypwl-message.is-error {
  color: #b42318;
}

.ppypwl-hero {
  width: 100%;
}

.ppypwl-hero-title {
  font-family: "Playfair Display", "Plus Jakarta Sans", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ppypwl-text);
}

.ppypwl-hero-subtitle {
  font-size: 15px;
  color: var(--ppypwl-muted);
  margin: 0 0 18px;
}

.ppypwl-join-form-hero .ppypwl-btn-submit {
  width: 100%;
}

.ppypwl-join-form-compact .ppypwl-group {
  margin-bottom: 12px;
}

.ppypwl-join-form-compact textarea {
  min-height: 84px;
}

.ppypwl-join-form-compact .ppypwl-message {
  margin-top: 10px;
}

.ppypwl-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
}

body.ppypwl-modal-open {
  overflow: hidden;
}

.ppypwl-modal.is-open {
  display: flex;
}

.ppypwl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 25, 23, 0.42);
  backdrop-filter: blur(4px);
}

.ppypwl-modal-panel {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 0;
  background: var(--ppypwl-surface);
  border-radius: 18px;
  box-shadow: var(--ppypwl-shadow);
  overflow: hidden;
  max-height: calc(100vh - 32px);
}

.ppypwl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ppypwl-border);
  background: #fffaf7;
}

.ppypwl-modal-title {
  font-family: "Playfair Display", "Plus Jakarta Sans", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ppypwl-text);
}

.ppypwl-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: rgba(51, 51, 51, 0.7);
  padding: 8px 10px;
  border-radius: 10px;
}

.ppypwl-modal-close:hover {
  background: rgba(235, 200, 190, 0.28);
  color: rgba(51, 51, 51, 0.95);
}

.ppypwl-modal-body {
  padding: 18px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.ppypwl-modal-newsletter {
  width: min(980px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  min-height: 560px;
}

.ppypwl-modal-close-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
}

.ppypwl-modal-newsletter-media {
  background: #f4ebe6;
  min-height: 100%;
}

.ppypwl-modal-newsletter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ppypwl-modal-newsletter-content {
  padding: 48px 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ppypwl-modal-badge {
  display: inline-flex;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: #3b4450;
  background: #f5f0ee;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.ppypwl-modal-heading {
  font-family: "Playfair Display", "Plus Jakarta Sans", serif;
  color: #1f2432;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px 0;
}

.ppypwl-modal-heading span {
  display: inline;
  margin-left: 8px;
  font-style: italic;
  color: #d8b4a8;
  font-weight: 500;
}

.ppypwl-modal-copy {
  margin: 0 0 18px;
  color: #5b5f69;
  font-size: 16px;
  line-height: 1.65;
  max-width: 38ch;
}

.ppypwl-join-form-modal {
  max-width: 100%;
}

.ppypwl-join-form-modal .ppypwl-group {
  margin-bottom: 12px;
}

.ppypwl-join-form-modal input[type="text"],
.ppypwl-join-form-modal input[type="email"] {
  border-radius: 10px;
  border: 1px solid #e3e4e9;
  background: #f8f8fb;
  color: #202531;
  min-height: 54px;
  padding: 14px 16px;
  font-size: 17px;
}

.ppypwl-join-form-modal input[type="text"]::placeholder,
.ppypwl-join-form-modal input[type="email"]::placeholder {
  color: #8a92a3;
}

.ppypwl-join-form-modal input[type="text"]:focus,
.ppypwl-join-form-modal input[type="email"]:focus {
  border-color: #d8b4a8;
  box-shadow: 0 0 0 4px rgba(235, 200, 190, 0.3);
  background: #fff;
}

.ppypwl-join-form-modal .ppypwl-group-consent {
  margin-top: 10px;
  margin-bottom: 14px;
}

.ppypwl-join-form-modal .ppypwl-consent {
  font-size: 13px;
  color: #747b89;
}

.ppypwl-join-form-modal .ppypwl-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.ppypwl-join-form-modal .ppypwl-consent a {
  color: #4b3f3a;
  text-decoration: underline;
}

.ppypwl-join-form-modal .ppypwl-btn-submit {
  width: 100%;
  border-radius: 10px;
  min-height: 54px;
  background: #dfbcb1;
  color: #1f2432;
  box-shadow: 0 10px 22px rgba(223, 188, 177, 0.36);
}

.ppypwl-join-form-modal .ppypwl-btn-submit:hover {
  background: #d7aca0;
  box-shadow: 0 12px 24px rgba(215, 172, 160, 0.44);
}

@media (max-width: 640px) {
  .ppypwl-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .ppypwl-btn-trigger,
  .ppypwl-btn-submit {
    width: 100%;
  }

  .ppypwl-join-form-inline {
    padding: 16px;
  }

  .ppypwl-modal {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .ppypwl-modal-newsletter {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ppypwl-modal-newsletter-media {
    max-height: 230px;
  }

  .ppypwl-modal-newsletter-content {
    padding: 28px 20px 20px;
  }

  .ppypwl-modal-heading {
    font-size: clamp(29px, 9vw, 42px);
  }
}
