/* CFP Weight Loss — lightweight cookie consent (teal/navy/cream) */

.cfp-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #12263a 0%, #0b1c2c 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(26, 166, 176, 0.35);
  box-shadow: 0 -8px 32px rgba(11, 28, 44, 0.28);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0.85rem 0;
}

.cfp-cc-banner.is-visible {
  transform: translateY(0);
}

.cfp-cc-banner__inner {
  width: min(100% - 1.5rem, 1120px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.cfp-cc-banner__text {
  flex: 1 1 220px;
  min-width: 0;
}

.cfp-cc-banner__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cfp-cc-banner__text a {
  color: #1aa6b0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cfp-cc-banner__text a:hover {
  color: #e6f6f7;
}

.cfp-cc-banner__meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.cfp-cc-banner__meta a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-decoration: none;
}

.cfp-cc-banner__meta a:hover {
  color: #1aa6b0;
  text-decoration: underline;
}

.cfp-cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cfp-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.cfp-cc-btn--accept {
  background: #0d7377;
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.35);
}

.cfp-cc-btn--accept:hover {
  background: #0b5f63;
}

.cfp-cc-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}

.cfp-cc-btn--ghost:hover {
  border-color: rgba(26, 166, 176, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Contact modal */
.cfp-cc-modal[hidden] {
  display: none !important;
}

.cfp-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 28, 44, 0.55);
  backdrop-filter: blur(4px);
}

@media (min-width: 560px) {
  .cfp-cc-modal {
    align-items: center;
  }
}

.cfp-cc-modal__panel {
  width: min(100%, 400px);
  background: #faf8f5;
  color: #1a2a36;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(11, 28, 44, 0.2);
  padding: 1.35rem 1.4rem 1.25rem;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  max-height: min(92vh, 720px);
  overflow: auto;
}

.cfp-cc-modal__panel--wide {
  width: min(100%, 480px);
}

.cfp-cc-iframe-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid #e2e8ed;
  border-radius: 12px;
  background: #fff;
}

.cfp-cc-iframe-note {
  margin-bottom: 0.65rem !important;
}

.cfp-cc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cfp-cc-modal__header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 550;
  color: #0b1c2c;
  margin: 0;
  line-height: 1.25;
}

.cfp-cc-modal__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #e8eef4;
  color: #1a334d;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.cfp-cc-modal__close:hover {
  background: #e6f6f7;
  color: #0d7377;
}

.cfp-cc-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #5a6b78;
  line-height: 1.5;
}

.cfp-cc-field {
  margin-bottom: 0.85rem;
}

.cfp-cc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a334d;
  margin-bottom: 0.3rem;
}

.cfp-cc-field input,
.cfp-cc-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #e2e8ed;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: #1a2a36;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cfp-cc-field textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

.cfp-cc-field input:focus,
.cfp-cc-field textarea:focus {
  border-color: #14919b;
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
}

.cfp-cc-req {
  color: #b42318;
  font-weight: 700;
}

.cfp-cc-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cfp-cc-linkbtn:hover {
  color: #1aa6b0;
}

.cfp-cc-btn--muted {
  background: #e8eef4 !important;
  color: #1a334d !important;
  border-color: #e2e8ed !important;
}

.cfp-cc-btn--muted:hover {
  background: #e6f6f7 !important;
  color: #0d7377 !important;
}

.cfp-cc-status {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: #5a6b78;
}

.cfp-cc-status.is-success {
  color: #067647;
  font-weight: 600;
}

.cfp-cc-status.is-error {
  color: #b42318;
  font-weight: 600;
}

.cfp-cc-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cfp-cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cfp-cc-modal__actions .cfp-cc-btn--accept {
  flex: 1;
  min-width: 8rem;
}

.cfp-cc-modal__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #7a8a96;
}

.cfp-cc-modal__note a {
  color: #0d7377;
  font-weight: 600;
}

/* Space so content isn’t hidden under banner on first visit */
body.cfp-cc-open {
  padding-bottom: 5.5rem;
}

@media (max-width: 480px) {
  .cfp-cc-banner__actions {
    width: 100%;
  }

  .cfp-cc-banner__actions .cfp-cc-btn {
    flex: 1;
  }

  body.cfp-cc-open {
    padding-bottom: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfp-cc-banner {
    transition: none;
  }
}
