/* ==========================
   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%;
  }
}