/* ==========================================================================
   Archivo: base.css
   Descripción: Estilos de formularios Esencial, Avanzado A y Avanzado B de Genvot.
   Autor: Ricardo D. Ponce M.
   Fecha: 25 de abril de 2025
   Versión: 1.0.0
   ========================================================================== */

/* === Sección Formulario Esencial === */

.pack-planes__titulo-esencial {
  font-size: calc(4.5rem + 1.8vw);
  line-height: calc(4.5rem + 2.6vw);
  font-weight: 400;
  width: 100%;
  padding: 5rem 0 0;
  text-align: center;
  text-transform: uppercase;
  color: #0f8c5b;
}

@media (max-width: 480px) {
  .pack-planes__titulo-esencial {
    display: flex;
    flex-direction: column;
  }
}

.pack-planes__titulo-esencial span {
  color: #000;
}

/* === Sección Formulario Avanzado A === */

.pack-planes__titulo-avanzado-a {
  font-size: calc(4.5rem + 1.8vw);
  line-height: calc(4.5rem + 2.6vw);
  font-weight: 400;
  width: 100%;
  padding: 5rem 0 0;
  text-align: center;
  text-transform: uppercase;
  color: #6200e3;
}

@media (max-width: 480px) {
  .pack-planes__titulo-avanzado-a {
    display: flex;
    flex-direction: column;
  }
}

.pack-planes__titulo-avanzado-a span {
  color: #000;
}

/* === Sección Formulario Avanzado B === */

.pack-planes__titulo-avanzado-b {
  font-size: calc(4.5rem + 1.8vw);
  line-height: calc(4.5rem + 2.6vw);
  font-weight: 400;
  width: 100%;
  padding: 5rem 0 0;
  text-align: center;
  text-transform: uppercase;
  color: #6200e3;
}

@media (max-width: 480px) {
  .pack-planes__titulo-avanzado-b {
    display: flex;
    flex-direction: column;
  }
}

.pack-planes__titulo-avanzado-b span {
  color: #000;
}

/* === Estructura del Formulario === */

.form-genvot {
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;
}

@media (max-width: 480px) {
  .form-genvot {
    padding: 1rem 0;
  }
}

/* === Barra de Progreso === */

.form__progress {
  background: #0f8c5b;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.form__progress-bar {
  height: 100%;
  width: 0%;
  background: #0277bd;
  transition: width 0.4s ease;
}

/* === Contenedores === */

.form__question-container {
  margin-bottom: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.form__question-container label,
.form__title-summary {
  display: block;
  margin: 2rem;
  font-size: calc(1.1rem + 1vw);
  line-height: calc(1.1rem + 2vw);
  text-align: center;
}

@media (max-width: 480px) {
  .form__question-container label,
  .form__title-summary {
    margin: 0 0 2rem 0;
  }
}

.form__title-summary {
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;    
  font-weight: 400;
}

/* === Campos de Formulario === */

.form__select,
.form__textarea {
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;
  width: 100%;
  padding: 0.75rem;
  border-radius: 3px;
  border: 1px solid #6200e3;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__select:focus,
.form__textarea:focus {
  outline: none !important;
  border-color: #0f8c5b !important;
}

@media (max-width: 480px) {
  .form__textarea::placeholder {
	font-size: 0.85rem;
  }
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
}

/* === Gestión de Archivos === */

.form__file {
  width: 100%;
  margin-top: 1rem;
}

.file-info {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6200e3;
  padding: 0.5rem;
  background: rgba(98, 0, 227, 0.05);
  border-radius: 3px;
}

.file-description {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 3px;
  border-left: 3px solid #9f5cff;
}

.file-description a {
  color: #6200e3;
  text-decoration: underline;
}

.file-summary {
  color: #6200e3;
  font-weight: 500;
  padding: 0.8rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #6200e3;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.file-summary.empty {
  color: #b71c1c;
  border-left-color: #b71c1c;
}

.file-description-summary {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  padding: 0.8rem;
  background: #f8f8f8;
  border-radius: 4px;
}

.file-description-summary a {
  color: #6200e3;
  text-decoration: underline;
}

.file-name {
  color: #6200e3;
  padding: 1rem 0;
}

/* === Descripciones === */

.question-description {
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0 1.5rem;
  padding: 0.8rem 1rem;
  background: #f8f8f8;
  border-radius: 4px;
  border-left: 3px solid #9f5cff;
  line-height: 1.5;
}

/* === Checkboxes === */

.form__checkbox-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form__checkbox-item {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.5rem 0 !important;
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: clamp(1rem, 1.4vw, 1.15rem) !important;
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;
  position: relative;
}

.form__checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 2rem;
  height: 2rem;
}

.form__checkbox-item span {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2rem;
  padding: 2rem 2rem 2rem 3rem;
  transition: all 0.3s ease;
  border: 1px solid #6200e3;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .form__checkbox-item span {
    padding: 1rem 1rem 1rem 2rem;     
    justify-content: center;
  }
}    

.form__checkbox-item input[type="checkbox"]:checked + span::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 20px;
  width: 5px;
  height: 20px;
  border: 1px solid #6200e3;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__checkbox-item:hover span {
  color: #fff;
  border-color: #6200e3;
  background-color: #6200e3;
}

.form__checkbox-item input[type="checkbox"]:checked + span {
  color: #fff;
  background-color: #6200e3;
  border-color: #6200e3;
}

/* === Radio === */

/* === Radios === */

.form__radio-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form__radio-item {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.5rem 0 !important;
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: clamp(1rem, 1.4vw, 1.15rem) !important;
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;
  position: relative;
}

.form__radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 2rem;
  height: 2rem;
}

.form__radio-item span {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2rem;
  padding: 2rem 2rem 2rem 3rem;
  transition: all 0.3s ease;
  border: 1px solid #6200e3;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .form__radio-item span {
    padding: 1rem 1rem 1rem 2rem;
    justify-content: center;
  }
}

.form__radio-item input[type="radio"]:checked + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #6200e3;
  border: 4px solid #6200e3;
  border-radius: 50%;
}

.form__radio-item:hover span {
  color: #fff;
  border-color: #6200e3;
  background-color: #6200e3;
}

.form__radio-item input[type="radio"]:checked + span {
  color: #fff;
  background-color: #6200e3;
  border-color: #6200e3;
}

/* === Explicaciones === */

.explanation-toggle {
  color: #6200e3;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  display: inline-block;
}

.explanation-toggle:hover {
  text-decoration: none;
}

.explanation-toggle:focus {
  outline: 2px solid #6200e3;
  outline-offset: 2px;
}

.explanation-content {
  background-color: #f8f8f8;
  border-left: 3px solid #6200e3;
  padding: 1rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.explanation-title {
  font-family: "Neue Haas Grotesk Text Pro", Sans-serif;
  font-size: 1rem;
}

.explanation-paragraph {
  font-size: 1rem;
}

/* === Descripciones === */

.question-description {
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0 1.5rem;
  padding: 0.8rem 1rem;
  background: #f8f8f8;
  border-radius: 4px;
  border-left: 3px solid #9f5cff;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .question-description {
    font-size: 0.85rem;
  }
}

/* === Botones === */

.form__buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 20px;    
}

.form__button {
  height: 50px;  
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#prev-button,
#prev-button:focus {
  border: 1px solid #6200e3;    
  background: #ffffff;
  color: #6200e3;
}

#next-button,
#next-button:focus {
  border: 1px solid #9f5cff;
  background: #9f5cff;
  color: #ffffff;
}

#prev-button:hover,
#next-button:hover {
  border: 1px solid #6200e3;
  background: #6200e3;
  color: #ffffff;
}    

#review-button {
  border-color: #f9a825;           
  background: #f9a825;
  color: #ffffff;
}

#review-button:hover {
  border-color: #f57f17;           
  background: #f57f17;
  color: #ffffff;
}

#submit-button {
  border-color: #0277bd;    
  background: #0277bd;
  color: #ffffff;
}    

#submit-button:hover {
  border-color: #01579b;        
  background: #01579b;
  color: #ffffff;
} 

#edit-button {
  border: 1px solid #6200e3;
  background: #fff;
  color: #6200e3;
  border-radius: 3px;
}

#edit-button:hover {
  background: #6200e3;
  color: #fff;
}

.form__button--disabled {
  cursor: not-allowed !important;     
} 

@media (max-width: 480px) {
  .form__button {
    font-size: 0.9rem !important;
  }
}   

/* === Efectos visuales === */

.typewriter-matriz span {
  border-right: 2px solid #6200e3;
  overflow: hidden;
  display: inline-block;
  animation: blink-caret 0.75s step-end infinite;
  max-width: 60%;
}

@media (max-width: 720px) {
  .typewriter-matriz span {
    max-width: 90%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #6200e3;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Resumen de Formulario === */

.summary-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.summary-item.editing {
  border-color: #6200e3;
  box-shadow: 0 0 0 2px rgba(98, 0, 227, 0.2);
}

.summary-question {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #6200e3;
  font-size: 1.2rem;
}

.summary-description {
  font-size: 0.95rem;
  color: #666;
  margin: 1rem 0;
  font-weight: 400;
}

@media (max-width: 480px) {
  .summary-description {
    font-size: 0.85rem;
  }
}

.summary-answer-container {
  margin-bottom: 1rem;
}

.summary-answer-display {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.8rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #6200e3;
}

.summary-answer-edit {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #6200e3;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  display: none;
}

.summary-edit-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* === Contador de campos de textarea === */

.contador {
  font-size: 0.9rem;
  margin-left: 0.5rem;    
}

.contador.bajo {
  color: #2e7d32;
}

.contador.medio {
  color: #f9a825;
}

.contador.alto {
  color: #c62828;
}

/* === Captura de Datos del Cliente === */

.cliente-form {
  margin-top: 3rem;
  animation: fadeIn 0.5s ease;
  text-align: left !important;    
}

.cliente-form input[type="text"],
.cliente-form input[type="email"],
.cliente-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #6200e3;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-family: "Neue Haas Grotesk Text Pro", sans-serif;
  transition: border-color 0.3s ease;
}

.cliente-form input[type="text"]:focus,
.cliente-form input[type="email"]:focus,
.cliente-form input[type="password"]:focus {
  outline: none;
  border-color: #0f8c5b;
}

.cliente-form div[style*="flex"] {
  margin-bottom: 1rem;
  width: 100%;
  gap: 1rem;     
}

.cliente-form div[style*="flex"] input {
  margin-bottom: 0;
}

.cliente-form div[style*="flex"] button.password-toggle {
  margin-left: 8px;
}

.input-group--password {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group--password .form__input {
  flex: 1;
}

.input-group--password .password-toggle {
  font-size: 1rem;
  width: 40px;
  height: 40px;
  background: #9f5cff;  
  padding: 0 0.5rem;
  margin-bottom: 1rem;    
  border: none;
  cursor: pointer;    
}

.input-group--password .password-toggle:hover,
.input-group--password .password-toggle:active,
.input-group--password .password-toggle:focus {
  background: #6200e3;     
}

/* Ocultar campos de contraseña */

#password-container,
#confirm-password-container {
  display: none;    
}    
    
.form__button--submit {
  background-color: #0277bd;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (max-width: 480px) {
  .form__button--submit {    
    font-size: 0.9rem;
  }
}   

.form-actions {
  text-align: center;
  margin: 2rem 0;    
}

.form__button--submit:hover {
  background-color: #01579b;
}

.form__button--back {
  background: #fff;
  color: #6200e3;
  border: 1px solid #6200e3;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .form__button--back  {    
    font-size: 0.9rem;
  }
}   

.form__button--back:hover {
  background: #6200e3;
  color: #fff;
}

#registro-cliente-respuesta {
  text-align: center;    
}    

#registro-cliente-respuesta .error-message {
  color: red;
  font-weight: bold;
  margin-top: 1rem;    
}    

#registro-cliente-respuesta .success-message {
  color: green;
  font-weight: bold;
  margin-top: 1rem;    
}    

/* === Popups de Confirmación en Resumen de Respuestas y Formulario de Captura de Datos del Cliente === */

#confirmation-dialog p {
  font-size: 1.2rem;
}    

/* === Entrega de Elevator Pitch === */

.pitch-result h2 {
  font-family: "Neue Haas Grotesk Text Pro", Sans-serif !important;    
  font-size: calc(1.3rem + 1.3vw);
  line-height: calc(2rem + 2.2vw);
  text-align: center;
  margin: 2rem 0;   
}

.pitch-result div {
  margin-bottom: 2rem;    
} 

.pitch-result div hr {
  margin: 1rem 0;    
}  

.pitch-result p {
  font-size: 1rem;
  line-height: 1.6rem;    
}

/* === Entrega de Elevator Pitch === */

.pay-result h2 {
  font-family: "Neue Haas Grotesk Text Pro", Sans-serif !important;    
  font-size: calc(1.3rem + 1.3vw);
  line-height: calc(2rem + 2.2vw);
  text-align: center;
  margin: 2rem 0;   
}

.pay-result div {
  margin-bottom: 2rem;    
} 

.pay-result div hr {
  margin: 1rem 0;    
}  

.pay-result p {
  font-size: 1rem;
  line-height: 1.6rem;    
}   

/* === Entrega de Enlace de Pago === */

.payment-success {
  text-align: center;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-success h1 {
  font-family: "Neue Haas Grotesk Text Pro", Sans-serif !important;    
  text-align: center;
  margin: 2rem 0;   
}

.payment-success p {
  margin: 3rem 0;
  font-size: 1.4rem;      
}

.payment-success a,
.payment-success a:hover,
.payment-success a:focus,
.payment-success a:active {
  background-color: #00a650;
  color: white;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin: 1rem 0;  
  border-radius: 8px;
}

.payment-section {
  display: flex;
  flex-direction: column;
  align-items: center;    
} 

.payment-section p {
  margin: 1rem 0;    
}    

#complete-payment-btn,
#complete-payment-btn:hover,
#complete-payment-btn:focus,
#complete-payment-btn:active {
  width: fit-content; 
  background-color: #00a650;
  color: white;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin: 1rem auto;    
  border-radius: 8px;
  cursor: pointer;     
}    

#check-payment-status,
#check-payment-status:hover,
#check-payment-status:focus,
#check-payment-status:active {
  width: fit-content;   
  background-color: #00a650;
  color: white;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin: 1rem auto;    
  border-radius: 8px;
  cursor: pointer;    
}    

.payment-note {
  font-size: 1rem;     
}

.payment-approved {
  width: 80%;    
  text-align: center;
  padding: 2rem 0;
  margin: 2rem auto; 
}

.payment-approved p {
  font-size: 1.4rem;         
}

/* === Página PHP de Agradecimiento tras Pago === */

.gracias-container h1 {
  margin: 0 0 2rem 0 !important;    
}

#gracias-cerrar-ventana,
#gracias-cerrar-ventana:hover,
#gracias-cerrar-ventana:focus,
#gracias-cerrar-ventana:active {
  background-color: #00a650 !important;
  color: white !important;
  font-size: 1.2rem !important;
  padding: 1rem 2rem !important;   
  border-radius: 8px !important;
}