:root {
  --bg: #f7f3eb !important;
  --text: #2b2b2b;
  --primary: #456882;
  --primary-dark: #1b3c53;
  --muted: #dddddd;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 🔹 Reset suave dentro de tu formulario */
.ctf-plugin-custom-form,
.ctf-plugin-custom-form * {
  box-sizing: border-box;
}

/* Quitar márgenes/paddings heredados */
.ctf-plugin-custom-form * {
  margin: 0;
  padding: 0;
}

/* Quitar estilos de listas */
.ctf-plugin-custom-form ul,
.ctf-plugin-custom-form ol {
  list-style: none;
  padding-left: 0;
}

/* Quitar decoraciones de enlaces, pero conservar color */
.ctf-plugin-custom-form a {
  text-decoration: none;
  color: inherit;
}

/* Normalizar títulos y párrafos */
.ctf-plugin-custom-form h1,
.ctf-plugin-custom-form h2,
.ctf-plugin-custom-form h3,
.ctf-plugin-custom-form h4,
.ctf-plugin-custom-form h5,
.ctf-plugin-custom-form h6,
.ctf-plugin-custom-form p {
  margin: 0;
  font-weight: normal;
  line-height: 1.4;
  font-family: "Playfair Display", serif !important;
}

/* Inputs básicos, pero NO tocar radios ni checkboxes */
.ctf-plugin-custom-form input[type="text"],
.ctf-plugin-custom-form input[type="email"],
.ctf-plugin-custom-form input[type="tel"],
.ctf-plugin-custom-form input[type="number"],
.ctf-plugin-custom-form input[type="password"],
.ctf-plugin-custom-form select,
.ctf-plugin-custom-form textarea {
  font: inherit;
  color: inherit;
  background: #fff !important;
  border: 1px solid #ccc !important;
  padding: 0.5rem !important;
  width: 100%;
  border-radius: 4px;
  box-shadow: none !important;
  font-family: "Playfair Display", serif !important;
}

/* Botones básicos */
.ctf-plugin-custom-form button,
.ctf-plugin-custom-form input[type="submit"] {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  background: #333;
  color: #fff;
}

/* Mantener radios y checkboxes nativos */
.ctf-plugin-custom-form input[type="radio"],
.ctf-plugin-custom-form input[type="checkbox"] {
  margin-right: 0.4rem;
  box-shadow: none !important;
}

.ctf-plugin-custom-form-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: transparent !important;
}

.ctf-plugin-custom-form {
  margin: 0 !important;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Source Sans Pro", sans-serif !important;
  color: var(--text) !important;
  font-size: 1.125rem !important;
}

.ctf-plugin-custom-form .container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  gap: 1rem !important;
  margin: 0 auto !important;
  background-color: transparent !important;
  padding: 0rem 0.5rem 3rem 0.5rem !important;
}

/* .ctf-plugin-custom-form .form-container,
.ctf-plugin-custom-form .order-summary {
  padding: 2rem !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
} */

.ctf-plugin-custom-form .form-container {
  flex: 1.8 !important;
  position: relative !important;
}

/* .ctf-plugin-custom-form .order-summary {
  flex: 1 !important;
  width: 100%;
  background: white !important;
  position: sticky !important;
  top: 2rem !important;
  align-self: flex-start;
  padding: 2rem !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
}

.ctf-plugin-custom-form .order-summary > h2 {
  font-weight: 600 !important;
}

.ctf-plugin-custom-form .order-summary #summary-total {
  font-size: 1.4rem;
  color: green !important;
  font-family: 600 !important;
}

.ctf-plugin-custom-form .order-summary .summary-block p {
  font-size: 1.1rem !important;
} */

.ctf-plugin-custom-form .order-summary {
  width: 100%;
  flex: 1 !important;
  background: white !important;
  position: sticky !important;
  top: 2rem !important;
  align-self: flex-start;
  padding: 2rem !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
}

.ctf-plugin-custom-form h1,
.ctf-plugin-custom-form h2,
.ctf-plugin-custom-form h3 {
  font-family: "Playfair Display", serif !important;
  color: var(--text) !important;
}

.ctf-plugin-custom-form h1 {
  text-align: center !important;
  margin-bottom: 0 !important;
  font-size: 2rem !important;
  padding: 1rem 0 0 0 !important;
}

.ctf-plugin-custom-form h2 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
  color: #333 !important;
}

/* -- steps -- */
.ctf-plugin-custom-form .container .step {
  display: none;
  background: white !important;
  height: 100%;
  padding: 2rem !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
}

.ctf-plugin-custom-form .container .step > p {
  font-size: 1rem !important;
  padding-bottom: 1rem !important;
}

.ctf-plugin-custom-form .container .step-active {
  display: block;
}

.ctf-plugin-custom-form .container .step .label-step-init {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.6rem !important;
  color: black !important;
  font-family: "Playfair Display", serif !important;
}

.ctf-plugin-custom-form .step-counter-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.2rem !important;
  margin: 0 auto !important;
  padding: 0rem 2rem !important;
  flex-direction: column;
  font-family: "Playfair Display", serif !important;
}

.ctf-plugin-custom-form .step-counter-container #step-counter {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.ctf-plugin-custom-form .progress-bar {
  background: #eee;
  height: 6px;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.ctf-plugin-custom-form .progress {
  background: var(--primary);
  width: 25%; /* starts at 25% for step 1 of 4 */
  height: 100%;
  transition: width 0.3s ease;
}

.ctf-plugin-custom-form .container .form-group {
  margin-bottom: 0.8rem;
}

.ctf-plugin-custom-form .container .option-card {
  flex: 1;
  display: flex;
  /* min-width: 240px; */
  border: 1px solid var(--muted);
  border-radius: 10px;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.ctf-plugin-custom-form .container .option-card:hover {
  border-color: #e10600;
  background: rgba(225, 6, 0, 0.05);
}

/* -- step #1 -- */
.ctf-plugin-custom-form .container .step[data-step="1"] .step-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ctf-plugin-custom-form .container .step[data-step="1"] .option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: space-around;
}

.ctf-plugin-custom-form .container .step[data-step="1"] .option-card {
  display: flex;
  flex: 1 1 calc(50% - 0.5rem);
  max-width: 196px;
  padding: 1.5rem 1rem;
  justify-content: flex-start;
  align-items: flex-start;
  white-space: nowrap;
  flex-direction: column;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  .option-card:last-child {
  margin-right: 0;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  .option-card
  input[type="radio"] {
  box-shadow: none !important;
  margin-right: 0.75rem !important;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  label:has(input[name="serviceType"]) {
  display: flex;
  flex-direction: column;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  label:has(input[name="serviceType"])::before {
  display: none;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  .option-card
  .option-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  .option-card
  .option-content
  p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="1"]
  .option-card
  .option-content
  .option-price {
  font-weight: 600;
  color: rgb(3, 133, 38);
}

.ctf-plugin-custom-form .container .step[data-step="1"] > .form-group {
  flex-direction: column;
  flex-wrap: wrap;
}

.ctf-plugin-custom-form .container .step[data-step="1"] .form-group label {
  color: black !important;
  display: flex !important;
  font-weight: 600 !important;
  gap: 1rem !important;
  font-size: 1rem !important;
  font-family: "Playfair Display", serif !important;
}

/* -- step #2 -- */
.ctf-plugin-custom-form .container .step[data-step="2"] .form-group.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ctf-plugin-custom-form .container .step[data-step="2"] .option-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  padding: 2rem;
}

.ctf-plugin-custom-form .container .step[data-step="2"] .option-card .price {
  color: rgb(3, 133, 38);
}

.ctf-plugin-custom-form .step[data-step="2"] .option-card .addon-text {
  flex: 2;
}

.ctf-plugin-custom-form .container .step[data-step="2"] .option-card input {
  flex: 1 !important;
  box-shadow: none !important;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="2"]
  .option-card
  input:checked
  + div,
.ctf-plugin-custom-form
  .container
  .step[data-step="2"]
  .option-card
  input:checked {
  border-color: var(--primary) !important;
  box-shadow: none !important;
  /* background: rgba(209, 44, 44, 0.05) !important; */
}

.ctf-plugin-custom-form
  .container
  .step[data-step="2"]
  .form-group
  label
  strong {
  color: black !important;
  display: flex !important;
  font-weight: 600 !important;
  gap: 1rem !important;
  padding-bottom: 0.5rem !important;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="2"]
  .form-group
  .label-form {
  color: black !important;
  display: flex !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding-bottom: 0.5rem !important;
}

/* -- step #3 -- */
.ctf-plugin-custom-form .container .step[data-step="3"] .form-group label {
  color: black !important;
  font-size: 1rem !important;
  margin-bottom: 0.3rem !important;
  font-family: "Playfair Display", serif !important;
}

/* -- step #4 -- */
.ctf-plugin-custom-form .container .step[data-step="4"] {
  padding-top: 5rem;
}

.ctf-plugin-custom-form .container .step[data-step="4"] .checkbox-content {
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  border: solid 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  border-radius: 16px;
}

.ctf-plugin-custom-form
  .container
  .step[data-step="4"]
  .checkbox-content:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.ctf-plugin-custom-form
  .container
  .step[data-step="4"]
  .checkbox-input-content
  input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.4rem;
}

.ctf-plugin-custom-form .container .step[data-step="4"] .checkbox-p-content {
  font-size: 1rem !important;
}

.ctf-plugin-custom-form .container .step[data-step="4"] #paymentSection {
  flex-direction: column;
  align-items: flex-end;
  margin-top: 2rem;
}

.ctf-plugin-custom-form .container .step[data-step="4"] #payButton {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 200px;
  background-color: #6861ff;
  color: white !important;
  border: none;
  margin-top: 0.5rem;
}

.ctf-plugin-custom-form .container .step[data-step="4"] #payButton img {
  width: 1.5rem;
}

/* -- labels -- */
.ctf-plugin-custom-form label[for="fromLang"],
.ctf-plugin-custom-form label[for="toLang"],
.ctf-plugin-custom-form label[for="documents"],
.ctf-plugin-custom-form label:has(input[name="serviceType"]) {
  font-size: 1rem;
  color: #2b2b2b;
  font-weight: 600;
  padding-bottom: 0.5rem;
}

.ctf-plugin-custom-form label[for="documents"] {
  font-size: 1rem;
  color: #2b2b2b;
  font-weight: 600;
}

.ctf-plugin-custom-form label:has(input[name="serviceType"]) {
  display: none;
}

.ctf-plugin-custom-form label:has(input[name="serviceType"])::before {
  content: "Translation Type";
  display: block;
  font-size: 1rem;
  color: #2b2b2b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ctf-plugin-custom-form label:has(input[name="serviceType"]) {
  display: none;
}

/* -- inputs -- */
.ctf-plugin-custom-form input[type="text"],
.ctf-plugin-custom-form input[type="email"],
.ctf-plugin-custom-form input[type="tel"],
.ctf-plugin-custom-form input,
.ctf-plugin-custom-form select,
.ctf-plugin-custom-form textarea {
  width: 100% !important;
  padding: 0.8rem !important;
  border: 1px solid var(--muted) !important;
  border-radius: var(--radius) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  outline: none !important;
}

.ctf-plugin-custom-form select {
  cursor: pointer !important;
}

.ctf-plugin-custom-form input[type="text"]:focus,
.ctf-plugin-custom-form input[type="email"]:focus,
.ctf-plugin-custom-form input[type="tel"]:focus,
.ctf-plugin-custom-form input:focus,
.ctf-plugin-custom-form select:focus,
.ctf-plugin-custom-form textarea:focus {
  outline: none !important;
  border: solid 1px var(--primary) !important;
  box-shadow: none !important;
}

.ctf-plugin-custom-form input[type="radio"]:focus,
.ctf-plugin-custom-form input[type="checkbox"]:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: scale(1.2) !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
.ctf-plugin-custom-form .input-error {
  animation: shake 0.3s ease !important;
  box-shadow: 0 0 3px rgba(225, 6, 0, 0.8) !important;
  transition: ease all 0.3s !important;
}

.ctf-plugin-custom-form .upload-area {
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  text-align: center;
  color: #999;
  min-height: 200px;
  padding: 2.5rem;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}

.ctf-plugin-custom-form .upload-area.dragover {
  background: rgba(0, 0, 0, 0.03);
}

.ctf-plugin-custom-form .upload-area:hover,
.ctf-plugin-custom-form .upload-area.dragover {
  border-color: #e10600;
  background: rgba(225, 6, 0, 0.05);
}

.ctf-plugin-custom-form .browse-text {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* -- buttons -- */
.ctf-plugin-custom-form .button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.ctf-plugin-custom-form button {
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  transition: background 0.3s !important;
}

.ctf-plugin-custom-form .btn-next {
  background: var(--primary) !important;
  color: #fff !important;
}
.ctf-plugin-custom-form .btn-next:hover {
  background: var(--primary-dark) !important;
}
.ctf-plugin-custom-form .btn-prev {
  background: #ccc !important;
  color: #fff !important;
}
.ctf-plugin-custom-form .btn-prev:hover {
  background: #999 !important;
}

/* -- list items documents -- */
.ctf-plugin-custom-form .file-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.ctf-plugin-custom-form .file-list li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid #eee !important;
}
.ctf-plugin-custom-form .file-list button {
  background: none !important;
  border: none !important;
  color: var(--primary) !important;
  cursor: pointer !important;
  font-weight: bold !important;
}

/* -- font size -- */
.ctf-plugin-custom-form p,
.ctf-plugin-custom-form .total-count,
.ctf-plugin-custom-form .upload-area,
.ctf-plugin-custom-form button,
.ctf-plugin-custom-form label,
.ctf-plugin-custom-form option,
.ctf-plugin-custom-form select,
.ctf-plugin-custom-form .file-list,
.ctf-plugin-custom-form p,
.ctf-plugin-custom-form .total-count,
.ctf-plugin-custom-form .upload-area,
.ctf-plugin-custom-form button,
.ctf-plugin-custom-form label,
.ctf-plugin-custom-form option,
.ctf-plugin-custom-form select,
.ctf-plugin-custom-form .file-list {
  font-size: 0.85rem !important;
  color: #777 !important;
  font-weight: 400 !important;
}

.ctf-plugin-custom-form .total-count {
  font-size: 1rem !important;
  color: black !important;
}

#request-a-quote-link {
  color: #fff;
  cursor: pointer;
}

/* -- summary aside -- */
.ctf-plugin-custom-form .order-summary > h2 {
  font-weight: 600 !important;
}

.ctf-plugin-custom-form .order-summary .summary-block {
  display: flex;
  flex-direction: column;
}

.ctf-plugin-custom-form .order-summary .summary-block-item {
  display: flex;
  align-items: center;
  border-top: solid 1px rgba(0, 0, 0, 0.06);
  padding: 0.65rem 0.6rem;
  gap: 0.3rem;
}

.ctf-plugin-custom-form .order-summary .summary-block-item p {
  color: black !important;
  font-size: 0.8rem !important;
}

.ctf-plugin-custom-form .order-summary .summary-block-item .summary-p-total {
  font-size: 1.2rem !important;
}

.ctf-plugin-custom-form
  .order-summary
  .summary-block-item
  .summary-p-total
  #summary-total {
  color: green;
}

.ctf-plugin-custom-form .order-summary .summary-block-item-files {
  display: flex;
}

.ctf-plugin-custom-form .order-summary .summary-block-item-files ul {
  display: block;
  max-height: 100px;
  overflow-y: auto !important;
  padding-left: 0.5rem !important;
  padding-right: 1rem !important;
  font-size: 0.8rem;
}

.ctf-plugin-custom-form .order-summary .summary-block-item-files ul li {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--bg);
  padding: 1px 10px;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box !important;
}

.ctf-plugin-custom-form .order-summary .summary-block-item input[type="radio"] {
  display: inline-block;
  width: 0.9rem !important;
  height: 0.9rem !important;
  pointer-events: none !important;
  accent-color: green !important;
}

.ctf-plugin-custom-form .sidebar-step-label {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
.ctf-plugin-custom-form .sidebar-step-label strong {
  color: var(--primary) !important;
}

.ctf-plugin-custom-form .help-section {
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem !important;
  margin-top: 2rem;
}

.ctf-plugin-custom-form .help-section h3 {
  margin-top: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
}

.ctf-plugin-custom-form .help-section p {
  margin: 0.5rem 0 !important;
  font-size: 0.9rem !important;
}

.ctf-plugin-custom-form .help-section .btn-quote {
  display: block;
  margin: 1rem auto 0;
  text-align: center;
  border: solid 1px var(--primary);
  color: var(--primary) !important;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1rem !important;
  transition: background 0.2s ease;
}
.ctf-plugin-custom-form .help-section .btn-quote:hover {
  background: var(--primary-dark);
}

.ctf-plugin-custom-form .help-container {
  margin-top: 2rem;
}

.ctf-plugin-custom-form .help-section {
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.ctf-plugin-custom-form .help-container .help-section {
  max-width: 300px;
  margin: 0 auto;
}
.ctf-plugin-custom-form .help-container {
  flex: 1;
  min-width: 280px;
  margin-top: 0;
}

.ctf-plugin-custom-form .help-container .help-section {
  margin: 0;
}

/* -- message styles -- */
.ctf-plugin-custom-form .message-stripe {
  background-color: white !important;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 40px auto;
  max-width: 700px;
}

.ctf-plugin-custom-form .message-stripe p {
  font-size: 1.2rem !important;
}

.ctf-plugin-custom-form .message-stripe h4 {
  font-weight: 600 !important;
}

.ctf-plugin-custom-form .message-stripe a {
  display: inline-block;
  font-family: "Playfair Display", serif !important;
  padding-top: 1rem;
  text-decoration: underline;
}

.ctf-plugin-custom-form .success-stripe h4 {
  color: rgb(3, 148, 3) !important;
}

.ctf-plugin-custom-form .error-stripe h4 {
  color: rgb(4, 136, 223) !important;
}

.ctf-plugin-custom-form
  :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea
  ).input-error {
  animation: shake 0.3s ease !important;
  box-shadow: 0 0 5px rgba(225, 6, 0, 0.8) !important;
  border: 1px solid red !important;
  transition: ease all 0.3s !important;
}
