.cpa-wizard {
  max-width: 460px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.cpa-progress {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.cpa-progress .bar {
  height: 100%;
  width: 0%;
  background: #c3a46c;
  transition: width 0.3s ease;
}
.hidden {
  display: none;
}
input,
button,
.cta {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.5rem;
}
.next {
  background: #1f2e52;
  color: white;
}
.back {
  background: #ccc;
}
.cta {
  background: #c3a46c;
  color: white;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
}

.wpcc-sars-table {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
  padding: 40px 15px;
  font-family: "Open Sans", sans-serif;
  max-width: 960px;
  margin: 40px auto;
  border-radius: 6px;
  text-align: center;
  color: #2e4369;
}
.wpcc-sars-table h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.wpcc-table-wrapper {
  overflow-x: auto;
}
.wpcc-transfer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.wpcc-transfer-table th {
  background: #002f5e;
  color: white;
  padding: 12px 16px;
  text-align: left;
}
.wpcc-transfer-table td {
  padding: 12px 16px;
  background: #fff;
}
.wpcc-transfer-table tr:nth-child(even) td {
  background: #f5f5f5;
}

/* Container */
.cpa-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.cpa-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Columns */
.cpa-col {
  flex: 1;
  min-width: 320px;
}

/* Inputs */
.cpa-input form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cpa-input input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.cpa-input button {
  padding: 0.8rem;
  background: #1e2c50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Summary */
.cpa-summary h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cpa-summary table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.cpa-summary th,
.cpa-summary td {
  padding: 0.5rem;
  text-align: left;
}

.cpa-summary thead {
  background: #f2f2f2;
  font-weight: bold;
}

.cpa-summary .cpa-note {
  font-size: 0.9rem;
  color: #666;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.buttons .back {
  background: #ccc;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.buttons .cta {
  background: #caa86e;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
}

#wpcc-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0; */
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Prevent background scroll */
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: center; /* Horizontally center */
}

#wpcc-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpcc-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.wpcc-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#wpcc-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh; /* important */
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .cpa-columns {
    flex-direction: column;
  }
}

.cpa-wpform {
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
}

.wpcc-field-transfer,
.wpcc-field-bond,
.wpcc-field-breakdown {
  display: none !important;
}

.accordion-content {
  display: none;
}

.accordion-content > div {
  padding: 15px 0;
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2e4369;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion-btn .icon {
  font-size: 2rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Prevent Gutenberg's extra <p> tags from breaking layout */
.accordion-content p,
.accordion-btn p,
.accordion-item p {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}


/* ===== Global Form Container ===== */
form.wpforms-form {
  max-width: 600px;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===== Field Containers ===== */
.wpforms-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.wpforms-field label.wpforms-field-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2e4369;
  margin-bottom: 4px;
}

/* ===== Inputs & Textareas (Full Width) ===== */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  resize: vertical; /* allows clean resizing without stretching form */
}

.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: #007BFF;
  outline: none;
}

/* ===== Name Field (50% Split) ===== */
.wpforms-field-name .wpforms-field-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start !important;
}

.wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 50%;
}

.wpforms-field-name input {
  width: 100%;
}

.wpforms-field-sublabel {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

/* ===== Hidden Labels Cleanup ===== */
.wpforms-label-hide {
  display: none !important;
}

/* ===== Submit Button Styling ===== */
.wpforms-submit-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.wpforms-submit {
  background-color: #2e4369;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpforms-submit:hover {
  background-color: #1b2945;
}

/* ===== Responsive (Mobile Stack) ===== */
@media (max-width: 600px) {
  .wpforms-field-name .wpforms-field-row {
    flex-direction: column;
    gap: 15px;
  }

  .wpforms-submit-container {
    flex-direction: column;
    align-items: stretch;
  }

  .wpforms-submit {
    width: 100%;
  }
}

/* ===== Hide Honeypot (Spam Trap) ===== */
#wpforms-1022-field_8-container {
  display: none !important;
}
