/* Estilos para Formulario de Contacto Dinámico */

.contact-form-dynamic {
   width: 100%;
}

.form-section {
   margin-bottom: 30px;
   padding: 20px;
   background-color: #f9f9f9;
   border-radius: 8px;
   border: 1px solid #e5e5e5;
}

.section-title {
   font-size: 18px;
   font-weight: 700;
   color: #333;
   margin-bottom: 20px;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.required-mark {
   color: #ee811e;
   font-weight: bold;
}

/* Tags Seleccionables */
.tag-group {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 15px;
}

.tag-btn {
   padding: 12px 24px;
   border: 2px solid #ddd;
   background-color: #fff;
   color: #333;
   border-radius: 25px;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 14px;
   font-weight: 500;
   outline: none;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.tag-btn:hover {
   border-color: #ee811e;
   color: #ee811e;
   transform: translateY(-2px);
   box-shadow: 0 4px 8px rgba(238, 129, 30, 0.2);
}

.tag-btn.active {
   background-color: #ee811e;
   border-color: #ee811e;
   color: #fff;
   box-shadow: 0 4px 12px rgba(238, 129, 30, 0.3);
}

.tag-btn i {
   font-size: 16px;
}

/* Sliders */
.slider-group {
   margin-bottom: 25px;
}

.slider-label {
   display: block;
   font-weight: 600;
   color: #333;
   margin-bottom: 10px;
   font-size: 15px;
}

.slider-label span {
   color: #ee811e;
   font-size: 18px;
   font-weight: 700;
}

.slider-input {
   width: 100%;
   height: 8px;
   border-radius: 5px;
   background: #ddd;
   outline: none;
   -webkit-appearance: none;
   margin: 15px 0;
}

.slider-input::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: #ee811e;
   cursor: pointer;
   box-shadow: 0 2px 6px rgba(238, 129, 30, 0.4);
   transition: all 0.3s ease;
}

.slider-input::-webkit-slider-thumb:hover {
   transform: scale(1.1);
   box-shadow: 0 4px 12px rgba(238, 129, 30, 0.6);
}

.slider-input::-moz-range-thumb {
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: #ee811e;
   cursor: pointer;
   border: none;
   box-shadow: 0 2px 6px rgba(238, 129, 30, 0.4);
   transition: all 0.3s ease;
}

.slider-input::-moz-range-thumb:hover {
   transform: scale(1.1);
   box-shadow: 0 4px 12px rgba(238, 129, 30, 0.6);
}

.slider-input::-webkit-slider-runnable-track {
   height: 8px;
   border-radius: 5px;
   background: linear-gradient(to right, #ee811e 0%, #ee811e var(--slider-progress, 0%), #ddd var(--slider-progress, 0%), #ddd 100%);
}

.slider-input::-moz-range-track {
   height: 8px;
   border-radius: 5px;
   background: #ddd;
}

.slider-labels {
   display: flex;
   justify-content: space-between;
   font-size: 12px;
   color: #666;
   margin-top: 5px;
}

/* Selects */
.form-select {
   width: 100%;
   padding: 12px 15px;
   border: 2px solid #ddd;
   border-radius: 5px;
   background-color: #fff;
   font-size: 14px;
   color: #333;
   cursor: pointer;
   transition: all 0.3s ease;
   outline: none;
}

.form-select:hover {
   border-color: #ee811e;
}

.form-select:focus {
   border-color: #ee811e;
   box-shadow: 0 0 0 3px rgba(238, 129, 30, 0.1);
}

.form-select:disabled {
   background-color: #f5f5f5;
   cursor: not-allowed;
   opacity: 0.6;
}

/* Campos Condicionales */
.conditional-section {
   animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-10px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.form-subsection {
   margin-bottom: 20px;
}

.subsection-label {
   display: block;
   font-weight: 600;
   color: #555;
   margin-bottom: 10px;
   font-size: 14px;
}

/* Textarea */
.contact-form-dynamic textarea {
   width: 100%;
   padding: 12px 15px;
   border: 2px solid #ddd;
   border-radius: 5px;
   font-size: 14px;
   font-family: inherit;
   resize: vertical;
   min-height: 120px;
   transition: all 0.3s ease;
}

.contact-form-dynamic textarea:focus {
   border-color: #ee811e;
   outline: none;
   box-shadow: 0 0 0 3px rgba(238, 129, 30, 0.1);
}

/* Inputs base */
.contact-form-dynamic input[type="text"],
.contact-form-dynamic input[type="email"],
.contact-form-dynamic input[type="tel"] {
   width: 100%;
   padding: 12px 15px;
   border: 2px solid #ddd;
   border-radius: 5px;
   font-size: 14px;
   transition: all 0.3s ease;
}

.contact-form-dynamic input[type="text"]:focus,
.contact-form-dynamic input[type="email"]:focus,
.contact-form-dynamic input[type="tel"]:focus {
   border-color: #ee811e;
   outline: none;
   box-shadow: 0 0 0 3px rgba(238, 129, 30, 0.1);
}

/* Botón Enviar */
.contact-form-dynamic .btn-block {
   width: 100%;
   padding: 15px 30px;
   font-size: 16px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-radius: 5px;
   transition: all 0.3s ease;
}

.contact-form-dynamic .btn-primary {
   background-color: #ee811e;
   border-color: #ee811e;
   color: #fff;
}

.contact-form-dynamic .btn-primary:hover {
   background-color: #d6701a;
   border-color: #d6701a;
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(238, 129, 30, 0.3);
}

/* Mensajes de Error */
.error-message {
   color: #d32f2f;
   font-size: 12px;
   margin-top: 5px;
   display: block;
}

.field-error {
   border-color: #d32f2f !important;
}

.field-error:focus {
   box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
}

/* Responsive */
@media (max-width: 992px) {
   .contact-form-dynamic {
      margin-top: 20px;
   }
}

@media (max-width: 768px) {
   .form-section {
      padding: 15px;
      margin-bottom: 20px;
   }

   .tag-group {
      gap: 8px;
   }

   .tag-btn {
      padding: 10px 18px;
      font-size: 13px;
   }

   .section-title {
      font-size: 16px;
      margin-bottom: 15px;
   }

   .slider-label {
      font-size: 14px;
   }

   .slider-label span {
      font-size: 16px;
   }

   .form-subsection {
      margin-bottom: 15px;
   }
}

@media (max-width: 480px) {
   .tag-btn {
      flex: 1;
      min-width: calc(50% - 4px);
      justify-content: center;
      padding: 8px 12px;
      font-size: 12px;
   }

   .form-section {
      padding: 12px;
      margin-bottom: 15px;
   }

   .section-title {
      font-size: 14px;
   }

   .slider-input {
      height: 6px;
   }

   .slider-input::-webkit-slider-thumb {
      width: 20px;
      height: 20px;
   }

   .slider-input::-moz-range-thumb {
      width: 20px;
      height: 20px;
   }

   .contact-form-dynamic .btn-block {
      padding: 12px 20px;
      font-size: 14px;
   }
}
