/* ==========================
   Optimify Connect
   Formulario
========================== */

.oc-form {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  display: block;
}

.oc-form * {
  box-sizing: border-box;
}

.oc-form-field {
  margin-bottom: 16px;
}

.oc-form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.oc-form-field input,
.oc-form-field select,
.oc-form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;

  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #101828;

  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;

  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.oc-form-field select {
  appearance: auto;
  cursor: pointer;
}

.oc-form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.oc-form-field input:focus,
.oc-form-field select:focus,
.oc-form-field textarea:focus {
  border-color: #6633ff;
  box-shadow: 0 0 0 3px rgba(102, 51, 255, 0.14);
}

.oc-form-field input::placeholder,
.oc-form-field textarea::placeholder {
  color: #98a2b3;
}

/* ==========================
   Buscador de país / prefijo
========================== */

.oc-prefix-combo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oc-prefix-search {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;

  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #101828;

  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;

  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.oc-prefix-search:focus {
  border-color: #6633ff;
  box-shadow: 0 0 0 3px rgba(102, 51, 255, 0.14);
}

.oc-prefix-search::placeholder {
  color: #98a2b3;
}

.oc-country-prefix-select {
  width: 100%;
}

/* ==========================
   Botón
========================== */

.oc-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 12px 22px;

  border: none;
  border-radius: 999px;
  background: #6633ff;
  color: #ffffff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.oc-form-submit:hover,
.oc-form-submit:focus {
  background: #5528dc;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(102, 51, 255, 0.28);
}

.oc-form-submit:disabled,
.oc-form-submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================
   Mensajes de respuesta
========================== */

.oc-form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;

  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.oc-form-message.is-success {
  display: block;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.oc-form-message.is-error {
  display: block;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

/* ==========================
   Campos personalizados
========================== */

.oc-form-field-campo_personalizado_1,
.oc-form-field-campo_personalizado_2,
.oc-form-field-campo_personalizado_3,
.oc-form-field-campo_personalizado_4,
.oc-form-field-campo_personalizado_5 {
  width: 100%;
}

/* ==========================
   Responsive
========================== */

@media (max-width: 767px) {
  .oc-form {
    max-width: 100%;
  }

  .oc-form-submit {
    width: 100%;
  }
}
/* ==========================
   Layout por porcentaje
   El administrador ve 20%, 40%, 60%, 80% y 100%.
   Internamente se aplican como columnas 1/5, 2/5, 3/5, 4/5 y 5/5.
========================== */

.oc-form-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  column-gap: 14px !important;
  row-gap: 16px !important;
  align-items: end;
  width: 100%;
}

.oc-form-grid .oc-form-field {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  padding-right: 0;
}

.oc-form-width-20 { grid-column: span 1 !important; }
.oc-form-width-40 { grid-column: span 2 !important; }
.oc-form-width-60 { grid-column: span 3 !important; }
.oc-form-width-80 { grid-column: span 4 !important; }
.oc-form-width-100 { grid-column: span 5 !important; }

.oc-form-button-width-20 { grid-column: span 1 !important; }
.oc-form-button-width-40 { grid-column: span 2 !important; }
.oc-form-button-width-60 { grid-column: span 3 !important; }
.oc-form-button-width-80 { grid-column: span 4 !important; }
.oc-form-button-width-100 { grid-column: span 5 !important; }

.oc-form-grid .oc-form-submit {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
  justify-self: stretch;
}

.oc-form-submit {
  background: var(--oc-form-button-bg, #6633ff);
}

.oc-form-submit:hover,
.oc-form-submit:focus {
  background: var(--oc-form-button-bg, #5528dc);
  filter: brightness(0.94);
}

@media (max-width: 767px) {
  .oc-form-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  .oc-form-width-20,
  .oc-form-width-40,
  .oc-form-width-60,
  .oc-form-width-80,
  .oc-form-width-100,
  .oc-form-button-width-20,
  .oc-form-button-width-40,
  .oc-form-button-width-60,
  .oc-form-button-width-80,
  .oc-form-button-width-100 {
    grid-column: span 1 !important;
  }
}

/* ==========================
   Select filtrable de prefijo con un solo campo visible
========================== */

.oc-prefix-combo {
  position: relative;
}

.oc-prefix-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.oc-prefix-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  padding: 6px;
}

.oc-prefix-dropdown.is-open {
  display: block;
}

.oc-prefix-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101828;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.oc-prefix-option:hover,
.oc-prefix-option:focus {
  background: rgba(102, 51, 255, 0.08);
  outline: none;
}

.oc-prefix-empty {
  padding: 10px;
  color: #667085;
  font-size: 14px;
}

@media (max-width: 767px) {
  .oc-form-grid {
    display: flex;
    flex-direction: column;
  }

  .oc-form-width-20,
  .oc-form-width-40,
  .oc-form-width-60,
  .oc-form-width-80,
  .oc-form-width-100,
  .oc-form-button-width-20,
  .oc-form-button-width-40,
  .oc-form-button-width-60,
  .oc-form-button-width-80,
  .oc-form-button-width-100 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================
   Iconos opcionales por campo
========================== */

.oc-form-control {
  position: relative;
  width: 100%;
}

.oc-form-control.has-icon .oc-form-field-icon {
  position: absolute;
  left: 13px;
  top: 22px;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.oc-form-control.has-icon > input,
.oc-form-control.has-icon > select,
.oc-form-control.has-icon > textarea,
.oc-form-control.has-icon .oc-prefix-search {
  padding-left: 44px;
}

.oc-form-control.has-icon > textarea + .oc-form-field-icon,
.oc-form-control.has-icon textarea ~ .oc-form-field-icon {
  top: 24px;
}

/* ==========================
   Estilos modernos de formulario
========================== */

.oc-form-style-modern_card {
  max-width: 620px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(208, 213, 221, 0.85);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
}

.oc-form-style-minimal_outline {
  max-width: 620px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.oc-form-style-minimal_outline .oc-form-field input,
.oc-form-style-minimal_outline .oc-form-field select,
.oc-form-style-minimal_outline .oc-form-field textarea,
.oc-form-style-minimal_outline .oc-prefix-search {
  border-radius: 8px;
  border-color: #cfd4dc;
  background: #ffffff;
}

.oc-form-style-soft_gradient {
  max-width: 640px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(102, 51, 255, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(102, 51, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(102, 51, 255, 0.12);
}

.oc-form-style-soft_gradient .oc-form-field input,
.oc-form-style-soft_gradient .oc-form-field select,
.oc-form-style-soft_gradient .oc-form-field textarea,
.oc-form-style-soft_gradient .oc-prefix-search {
  border-color: rgba(102, 51, 255, 0.22);
}

/* El select real del prefijo queda oculto; el visitante usa un solo campo visible. */
.oc-prefix-hidden-select {
  display: none !important;
}

.oc-form-grid .oc-form-message {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 767px) {
  .oc-form-style-modern_card,
  .oc-form-style-soft_gradient {
    padding: 18px;
    border-radius: 18px;
  }

  .oc-form-grid .oc-form-message {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==========================
   Ajustes v8.0.16
========================== */

.oc-form-grid .oc-form-message {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.oc-form-button-align-left.oc-form-button-width-20 { grid-column: 1 / span 1 !important; }
.oc-form-button-align-center.oc-form-button-width-20 { grid-column: 3 / span 1 !important; }
.oc-form-button-align-right.oc-form-button-width-20 { grid-column: 5 / span 1 !important; }

.oc-form-button-align-left.oc-form-button-width-40 { grid-column: 1 / span 2 !important; }
.oc-form-button-align-center.oc-form-button-width-40 { grid-column: 2 / span 2 !important; }
.oc-form-button-align-right.oc-form-button-width-40 { grid-column: 4 / span 2 !important; }

.oc-form-button-align-left.oc-form-button-width-60 { grid-column: 1 / span 3 !important; }
.oc-form-button-align-center.oc-form-button-width-60 { grid-column: 2 / span 3 !important; }
.oc-form-button-align-right.oc-form-button-width-60 { grid-column: 3 / span 3 !important; }

.oc-form-button-align-left.oc-form-button-width-80 { grid-column: 1 / span 4 !important; }
.oc-form-button-align-center.oc-form-button-width-80 { grid-column: 1 / span 4 !important; }
.oc-form-button-align-right.oc-form-button-width-80 { grid-column: 2 / span 4 !important; }

.oc-form-button-align-left.oc-form-button-width-100,
.oc-form-button-align-center.oc-form-button-width-100,
.oc-form-button-align-right.oc-form-button-width-100 {
  grid-column: 1 / span 5 !important;
}

@media (max-width: 767px) {
  .oc-form-grid .oc-form-message,
  .oc-form-button-align-left,
  .oc-form-button-align-center,
  .oc-form-button-align-right {
    grid-column: 1 / -1 !important;
  }
}


/* ==========================
   Ajustes v8.0.17
   Anchos reales por porcentaje 10% a 100%.
========================== */

.oc-form.oc-form-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-items: flex-end !important;
  width: 100% !important;
}

.oc-form.oc-form-grid .oc-form-field {
  box-sizing: border-box !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  margin-bottom: 16px !important;
  min-width: 0 !important;
}

.oc-form-width-10 { flex: 0 0 10% !important; max-width: 10% !important; width: 10% !important; grid-column: auto !important; }
.oc-form-width-20 { flex: 0 0 20% !important; max-width: 20% !important; width: 20% !important; grid-column: auto !important; }
.oc-form-width-30 { flex: 0 0 30% !important; max-width: 30% !important; width: 30% !important; grid-column: auto !important; }
.oc-form-width-40 { flex: 0 0 40% !important; max-width: 40% !important; width: 40% !important; grid-column: auto !important; }
.oc-form-width-50 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; grid-column: auto !important; }
.oc-form-width-60 { flex: 0 0 60% !important; max-width: 60% !important; width: 60% !important; grid-column: auto !important; }
.oc-form-width-70 { flex: 0 0 70% !important; max-width: 70% !important; width: 70% !important; grid-column: auto !important; }
.oc-form-width-80 { flex: 0 0 80% !important; max-width: 80% !important; width: 80% !important; grid-column: auto !important; }
.oc-form-width-90 { flex: 0 0 90% !important; max-width: 90% !important; width: 90% !important; grid-column: auto !important; }
.oc-form-width-100 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; grid-column: auto !important; }

.oc-form-button-width-10 { flex: 0 0 10% !important; max-width: 10% !important; width: 10% !important; grid-column: auto !important; }
.oc-form-button-width-20 { flex: 0 0 20% !important; max-width: 20% !important; width: 20% !important; grid-column: auto !important; }
.oc-form-button-width-30 { flex: 0 0 30% !important; max-width: 30% !important; width: 30% !important; grid-column: auto !important; }
.oc-form-button-width-40 { flex: 0 0 40% !important; max-width: 40% !important; width: 40% !important; grid-column: auto !important; }
.oc-form-button-width-50 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; grid-column: auto !important; }
.oc-form-button-width-60 { flex: 0 0 60% !important; max-width: 60% !important; width: 60% !important; grid-column: auto !important; }
.oc-form-button-width-70 { flex: 0 0 70% !important; max-width: 70% !important; width: 70% !important; grid-column: auto !important; }
.oc-form-button-width-80 { flex: 0 0 80% !important; max-width: 80% !important; width: 80% !important; grid-column: auto !important; }
.oc-form-button-width-90 { flex: 0 0 90% !important; max-width: 90% !important; width: 90% !important; grid-column: auto !important; }
.oc-form-button-width-100 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; grid-column: auto !important; }

.oc-form.oc-form-grid .oc-form-submit {
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.oc-form-button-align-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.oc-form-button-align-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

.oc-form-button-align-right {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.oc-form.oc-form-grid .oc-form-message {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  grid-column: auto !important;
}

@media (max-width: 767px) {
  .oc-form.oc-form-grid .oc-form-field,
  .oc-form.oc-form-grid .oc-form-submit,
  .oc-form-width-10,
  .oc-form-width-20,
  .oc-form-width-30,
  .oc-form-width-40,
  .oc-form-width-50,
  .oc-form-width-60,
  .oc-form-width-70,
  .oc-form-width-80,
  .oc-form-width-90,
  .oc-form-width-100,
  .oc-form-button-width-10,
  .oc-form-button-width-20,
  .oc-form-button-width-30,
  .oc-form-button-width-40,
  .oc-form-button-width-50,
  .oc-form-button-width-60,
  .oc-form-button-width-70,
  .oc-form-button-width-80,
  .oc-form-button-width-90,
  .oc-form-button-width-100 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
