/* I:\ayudamascota\public\css\publicar.css */

/* Progreso */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.progress-step.active {
    color: #e94560;
}

.progress-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    border-color: #e94560;
    background: #e94560;
    color: white;
}

.progress-step.completed .step-number {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.progress-line {
    flex: 0 0 40px;
    height: 2px;
    background: #ddd;
}

/* Formulario */
.publicar-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    margin-bottom: 8px;
    color: #1a1a2e;
}

.step-description {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

input.error, select.error, textarea.error {
    border-color: #dc3545;
}

input.error:focus, select.error:focus, textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    display: none;
    margin-top: 4px;
}

.error-message.visible {
    display: block;
}

textarea {
    resize: vertical;
}

small {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Upload de foto */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #e94560;
    background: #fafafa;
}

.upload-area.dragover {
    border-color: #e94560;
    background: #fef0f2;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-content p {
    margin: 0;
    color: #666;
}

.upload-content small {
    color: #999;
}

#previewContainer {
    text-align: center;
    padding: 20px;
}

#previewContainer img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Navegación */
.form-navigation {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    padding: 10px 30px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    flex: 1;
}

.btn-primary:hover {
    background: #c73652;
}

.btn-success {
    padding: 10px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    flex: 1;
}

.btn-success:hover {
    background: #218838;
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success .spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Notificaciones */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        gap: 5px;
    }
    
    .progress-line {
        flex: 0 0 20px;
    }
    
    .publicar-form {
        padding: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-primary, .btn-success {
        width: 100%;
    }
}
/* ========== BOTONES DE SELECCIÓN (Toggles) ========== */
.btn-group-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Escondemos los inputs de radio reales */
.btn-group-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Estilo de los botones (Estado normal) */
.toggle-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

/* Estado Hover */
.toggle-btn:hover {
  border-color: var(--azul);
  background: #f0f6fb;
}

/* Estado Seleccionado (Cuando el radio está check) */
.btn-group-toggle input[type="radio"]:checked + .toggle-btn {
  border-color: var(--azul);
  background: var(--azul);
  color: #fff;
}

/* Botón Final de Publicar en el paso 4 */
.form-step:last-child .btn-primary {
  background: var(--naranja); /* Usa tu naranja de marca */
  color: #fff;
}

.form-step:last-child .btn-primary:hover {
  background: #e66a20;
}

/* ===== NUEVOS ESTILOS PARA RADIO BUTTONS (PÍLDORAS) ===== */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-pill {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
    color: #333;
}

.radio-pill:hover {
    border-color: var(--naranja, #FF7A2F);
    background: #fff4eb;
}

.radio-pill input[type="radio"] {
    display: none; /* Ocultamos el radio nativo */
}

.radio-pill:has(input:checked) {
    background: var(--naranja, #FF7A2F);
    border-color: var(--naranja, #FF7A2F);
    color: white;
}

/* ===== BOTÓN "SIGUIENTE" NARANJA ===== */
.btn-primary {
    background: var(--naranja, #FF7A2F);
}

.btn-primary:hover {
    background: #e0661a; /* Naranja más oscuro */
}

/* ===== BOTÓN "PUBLICAR ALERTA" NARANJA ===== */
.btn-success {
    background: var(--naranja, #FF7A2F);
}

.btn-success:hover {
    background: #e0661a;
}

/* ===== BOTÓN "ANTERIOR" COMO ENLACE ===== */
.btn-secondary {
    background: transparent;
    color: var(--azul, #0066cc);
    padding: 8px 0;
    font-weight: 500;
    border: none;
    text-decoration: none;
}

.btn-secondary:hover {
    background: transparent;
    text-decoration: underline;
}

/* ===== CAMPOS CON ERROR ===== */
input.error, select.error, textarea.error {
    border-color: #dc3545 !important; /* Rojo */
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    display: none;
    margin-top: 6px;
}

.error-message.visible {
    display: block;
}

/* ===== TEXTO DE AYUDA (GRIS) ===== */
.help-text {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

/* ===== CHECKBOX CON TEXTO DE AYUDA ===== */
.checkbox-group {
    margin-top: 16px;
}

.checkbox-with-help {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkbox-with-help label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-with-help .help-text {
    margin-left: 28px;
}