@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.cpf-wrapper {
  --cpf-bg: #f7f7f0;
  --cpf-olive: #afaa65;
  --cpf-olive-dark: #a19c5b;
  --cpf-dark: #161616;
  --cpf-muted: #666660;
  --cpf-border: #dfdfd8;
  --cpf-stepper-bg: #eae9d7;
  --cpf-stepper-txt: #9a9a96;
  --cpf-paypal: #054a96;

  background-color: var(--cpf-bg);
  color: var(--cpf-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.cpf-wrapper * { box-sizing: border-box; }

/* Stepper */
.cpf-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  width: 100%;
}
.cpf-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.cpf-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--cpf-stepper-bg);
  color: var(--cpf-stepper-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.cpf-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cpf-stepper-txt);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.cpf-step-node.active .cpf-circle {
  background-color: var(--cpf-olive);
  color: var(--cpf-dark);
}
.cpf-step-node.active .cpf-label {
  color: var(--cpf-dark);
  font-weight: 600;
}
.cpf-connector {
  flex: 1;
  height: 1px;
  background-color: #b9b9b4;
  margin: 0 16px;
  min-width: 20px;
}

/* Screens & Typography */
.cpf-screen { display: none; }
.cpf-screen.active { display: block; animation: cpfFade 0.25s ease-out; }
@keyframes cpfFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.cpf-heading { font-size: 36px; font-weight: 600; letter-spacing: -0.025em; color: var(--cpf-dark); margin-bottom: 8px; }
.cpf-subheading { font-size: 13.5px; color: var(--cpf-muted); margin-bottom: 28px; line-height: 1.5; }

/* Form Inputs (Step 1) */
.cpf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cpf-field {
  width: 100%;
  background: #ffffff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 52px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--cpf-dark);
  transition: box-shadow 0.2s ease;
}
.cpf-field:focus {
  outline: none !important;
  box-shadow: 0 0 0 1.5px var(--cpf-olive) !important;
}

.cpf-prominent-label { font-size: 16px; font-weight: 600; color: var(--cpf-dark); margin-top: 18px; margin-bottom: 8px; }
.cpf-prominent-label:empty { display: none; margin: 0; }

.cpf-textarea {
  width: 100%;
  background: #ffffff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 200px;
  padding: 18px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--cpf-dark);
  resize: vertical;
  line-height: 1.6;
  margin-top: 14px;
  transition: box-shadow 0.2s ease;
}
.cpf-textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 1.5px var(--cpf-olive) !important;
}
.cpf-error {
  box-shadow: 0 0 0 1.5px #d32f2f !important;
}

/* Style Cards (Step 2) */
.cpf-card {
  background: #ffffff;
  border-radius: 2px;
  padding: 24px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.cpf-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.cpf-card-header h3 { font-size: 16px; font-weight: 600; color: var(--cpf-dark); letter-spacing: -0.01em; margin: 0; }
.cpf-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c4c1b5; background: #ffffff; flex-shrink: 0; margin-left: 10px; }
.cpf-card p { font-size: 12px; color: #727068; line-height: 1.55; margin: 0; }
.cpf-card.selected { background-color: var(--cpf-olive); }
.cpf-card.selected .cpf-radio { background: #ffffff; border-color: #ffffff; box-shadow: 0 0 4px rgba(255,255,255,0.9); }

/* Package Cards (Step 3) */
.cpf-package-card {
  background: #ffffff;
  border: 1px solid var(--cpf-border);
  border-radius: 2px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cpf-pkg-title { font-size: 17px; font-weight: 600; color: var(--cpf-dark); margin-bottom: 6px; line-height: 1.3; }
.cpf-pkg-price { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; margin: 4px 0 10px 0; color: var(--cpf-dark); }
.cpf-pkg-desc { font-size: 12.5px; color: #555550; line-height: 1.45; margin-bottom: 6px; }
.cpf-pkg-lines { font-size: 12px; color: #666660; margin-bottom: 24px; }
.cpf-plan-pill {
  margin-top: auto;
  width: 100%;
  background: #dcdbd3;
  border: none;
  border-radius: 9999px;
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: #727068;
  cursor: pointer;
}
.cpf-plan-dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #a8a69b; }
.cpf-package-card.selected { background-color: var(--cpf-olive); border-color: var(--cpf-olive); }
.cpf-package-card.selected .cpf-pkg-desc { color: #222220; }
.cpf-package-card.selected .cpf-pkg-lines { color: #2c2c28; }
.cpf-package-card.selected .cpf-plan-pill { background: #000000; color: #ffffff; }
.cpf-package-card.selected .cpf-plan-pill .cpf-plan-dot { border-color: #ffffff; background: #ffffff; box-shadow: inset 0 0 0 3px #000000; }

/* Summary Box (Step 4) */
.cpf-summary-box {
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 32px 32px 0 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cpf-summary-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--cpf-dark);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.cpf-summary-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}

.cpf-summary-thumb {
  width: 90px !important;
  height: 90px !important;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #dfdfd8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.cpf-summary-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.cpf-art-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f0;
  color: #afaa65;
  font-size: 24px;
}

.cpf-summary-info {
  flex: 1;
  min-width: 0;
}
.cpf-summary-headline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.cpf-summary-headline h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--cpf-dark);
  letter-spacing: -0.015em;
  margin: 0;
}
.cpf-summary-headline span {
  font-size: 12px;
  color: #727068;
  font-weight: 400;
  white-space: nowrap;
}
.cpf-summary-info p {
  font-size: 13px;
  color: #666660;
  line-height: 1.5;
  margin: 0;
}

.cpf-summary-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--cpf-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}

.cpf-summary-divider {
  height: 1px;
  background-color: #dfdfd8;
  margin: 0 -32px;
}

.cpf-summary-details {
  padding: 8px 0;
}
.cpf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 14px 0;
  color: #666660;
}
.cpf-summary-row:first-child {
  border-bottom: 1px solid #ecebe2;
}
.cpf-summary-row strong {
  color: var(--cpf-dark);
  font-weight: 500;
}

.cpf-total-banner {
  background-color: var(--cpf-olive);
  margin: 8px -32px 0 -32px;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--cpf-dark);
  border-radius: 0 0 2px 2px;
}
.cpf-total-banner span:last-child {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* PayPal Area */
.cpf-paypal-section {
  margin-top: 32px;
}
.cpf-paypal-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--cpf-dark);
  margin: 0 0 6px 0;
}
.cpf-paypal-section .cpf-subheading {
  margin-bottom: 18px;
}

.cpf-paypal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.cpf-wrapper .cpf-paypal-btn,
.cpf-paypal-btn {
  background-color: var(--cpf-paypal) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0 42px !important;
  height: 44px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  user-select: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background-color 0.2s ease !important;
}
.cpf-wrapper .cpf-paypal-btn:hover,
.cpf-wrapper .cpf-paypal-btn:focus,
.cpf-wrapper .cpf-paypal-btn:active,
.cpf-paypal-btn:hover,
.cpf-paypal-btn:focus,
.cpf-paypal-btn:active {
  background-color: #043d7c !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.cpf-paypal-logo {
  flex-shrink: 0;
}
.cpf-paypal-text {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  font-family: Arial, sans-serif !important;
  letter-spacing: -0.02em;
}

.cpf-card-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cpf-badge {
  background: #ffffff;
  border: 1px solid #dfdfd8;
  border-radius: 2px;
  padding: 0 10px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.cpf-visa {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: #1A1F71;
  letter-spacing: 0.05em;
}
.cpf-badge svg {
  display: block;
}
.cpf-amex {
  background: #006fcf;
  border-color: #006fcf;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  font-family: Arial, sans-serif;
}
.cpf-lock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666660;
  margin-top: 14px;
}
.cpf-hr {
  height: 1px;
  background-color: #dfdfd8;
  margin: 24px 0 28px 0;
  border: none;
}

/* Pill Buttons & Navigation Reset (Prevents Theme Button Hover Leakage) */
.cpf-nav-bar { display: flex !important; align-items: center !important; gap: 20px !important; margin-top: 32px !important; background: transparent !important; }
.cpf-wrapper .cpf-pill-group,
.cpf-pill-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  user-select: none !important;
  text-decoration: none !important;
  transition: transform 0.2s ease !important;
}

.cpf-wrapper .cpf-pill-group:hover,
.cpf-wrapper .cpf-pill-group:focus,
.cpf-wrapper .cpf-pill-group:active,
.cpf-pill-group:hover,
.cpf-pill-group:focus,
.cpf-pill-group:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  transform: translateY(-1px) !important;
}

.cpf-pill-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  height: 42px !important;
  padding: 0 42px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.cpf-pill-arrow {
  height: 42px !important;
  width: 48px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.cpf-wrapper .cpf-olive,
.cpf-olive {
  background-color: var(--cpf-olive) !important;
  color: var(--cpf-dark) !important;
}
.cpf-wrapper .cpf-pill-group:hover .cpf-olive,
.cpf-wrapper .cpf-pill-group:focus .cpf-olive,
.cpf-pill-group:hover .cpf-olive,
.cpf-pill-group:focus .cpf-olive {
  background-color: var(--cpf-olive-dark) !important;
  color: var(--cpf-dark) !important;
}

.cpf-wrapper .cpf-black,
.cpf-black {
  background-color: #000000 !important;
  color: #ffffff !important;
}
.cpf-wrapper .cpf-pill-group:hover .cpf-black,
.cpf-wrapper .cpf-pill-group:focus .cpf-black,
.cpf-pill-group:hover .cpf-black,
.cpf-pill-group:focus .cpf-black {
  background-color: #262626 !important;
  color: #ffffff !important;
}

/* Comprehensive Theme & Elementor Button Reset inside .cpf-wrapper */
.cpf-wrapper button,
.cpf-wrapper [role="button"] {
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}
.cpf-wrapper button:hover,
.cpf-wrapper button:focus,
.cpf-wrapper button:active,
.cpf-wrapper [role="button"]:hover,
.cpf-wrapper [role="button"]:focus,
.cpf-wrapper [role="button"]:active {
  background-color: transparent;
  box-shadow: none;
  outline: none;
}

@media (max-width: 768px) {
  .cpf-grid-3 { grid-template-columns: 1fr; }
  .cpf-stepper { flex-wrap: wrap; gap: 12px; }
  .cpf-connector { display: none; }
  .cpf-paypal-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
