/**
 * Form fixing for the black background input firlds
 */
:where(.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form input[type="url"], .contact-form input[type="number"], .contact-form input[type="time"], .contact-form textarea, .contact-form .wp-block-jetpack-input-wrap .jetpack-field__input-phone-wrapper) {
	background-color: white !important;
}
/* ============================================
   Petal-it-Forward Campaign Popup
   WordPress Additional CSS (Appearance > Customize > Additional CSS)
   ============================================ */

/* Overlay */
.pif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.pif-overlay.pif-visible {
  display: flex;
}

.pif-overlay.pif-hidden {
  display: none !important;
}

/* Modal */
.pif-modal {
	position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .pif-overlay {
    align-items: center;
    padding: 1rem;
  }

  .pif-modal {
    max-height: calc(100dvh - 2rem);
    border-radius: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Hero Image */
.pif-hero {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.pif-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  display: block;
}

.pif-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.pif-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
	line-height: 1.3;
	text-align: center;
}

.pif-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin: 0 0 3px;
}

.pif-campaign-name {
  font-size: 17px;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
}

/* Bouquet Count */
.pif-count-wrap {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.pif-count-label {
  font-size: 13px;
  color: #444444;
  margin: 0 0 4px;
}

.pif-count-number {
  font-size: 52px;
  font-weight: 600;
  color: #0c80a1;
  line-height: 1;
  letter-spacing: -2px;
  margin: 0;
}

.pif-count-unit {
  font-size: 13px;
  color: #444444;
  margin: 4px 0 0;
}

/* Body */
.pif-body {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.pif-text {
  font-size: 16px;
  line-height: 1.75;
  color: #444444;
  margin: 0 0 1.25rem;
}

/* Buttons */
.pif-btn {
  display: block;
  width: 100%;
  padding: 13px 1rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.pif-btn:hover {
  opacity: 0.8;
  text-decoration: none;
}

.pif-btn-primary {
  background: #0c80a1;
  color: #ffffff !important;
  border: none;
}

.pif-btn-secondary {
  background: transparent;
  color: #444444 !important;
  border: 1px solid #d1d5db;
}

/* Close Button */
.pif-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
}

.pif-close-btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* Footer */
.pif-footer {
  background: #f5f0eb;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
	line-height: 1.1;
}

.pif-footer-link {
  font-size: 11px;
  color: #0c80a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pif-footer-link:hover {
  opacity: 0.8;
}

.pif-footer-text {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px;
}
/* Mobile */
@media (max-width: 600px) {
  .pif-count-number {
    font-size: 42px;
  }

  .pif-hero {
    height: 150px;
  }

  .pif-body {
    padding: 1rem 1.25rem;
  }
}