/*
' Copyright (c) 2025 julius2Grow.com
'  All rights reserved.
' 
' Estilos para la Calculadora de Alimentos para Perros - Vivance Vitality
*/

/* Contenedor principal */
.calculator-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* background: var(--graybg); */
}

.calculator-title {
    color: var(--bg_blue);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    text-align: center;
}

.calculator-subtitle {
    color: #7f8c8d;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

/* Secciones del formulario */
.form-section {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
}

.form-section h3 {
    color: var(--pink);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 10px;
    width: 45%;
    margin: 12px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 4px;
    font-size: 12px;
}

.form-group input,
.form-group select {
    background-color: transparent
}

.form-group .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: 1.3;
    height: auto;
}

.form-control:focus {
    outline: none;
    border-color: #7e2447;
    box-shadow: 0 0 0 2px rgba(126, 36, 71, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.help-text {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #7f8c8d;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 11px;
    margin-top: 3px;
}

/* Checkbox group */
.checkbox-group {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.terms-link {
    display: block;
    margin-top: 8px;
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Botones */
.form-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-primary {
    background-color: #7e2447;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #6a1d3a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(126, 36, 71, 0.3);
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

/* Sección de resultados */
.result-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container {
    background: #ffffff;
    border: 2px solid;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-container.success {
    border-color: #27ae60;
    background: linear-gradient(to bottom, #ffffff, #f8fff9);
}

.result-container.error {
    border-color: #e74c3c;
    background: linear-gradient(to bottom, #ffffff, #fff8f8);
}

.result-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.result-container.success h3 {
    color: #27ae60;
}

.result-container.error h3 {
    color: #e74c3c;
}

.result-content {
    margin-top: 15px;
}

.result-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.result-value {
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
    margin: 10px 0;
}

.result-info {
    margin-top: 15px;
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
}

/* Modal de términos y condiciones */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 18px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #34495e;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #34495e;
}

.modal-body strong {
    color: #2c3e50;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.newBTNEnviar {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    /* cursor: pointer; */
    transition: all 0.2s ease;
    background-color: var(--pink);
    color: #ffffff;
}

.newBTNEnviar:hover:not(:disabled) {
    background-color: var(--bg_blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(126, 36, 71, 0.3);
}

.newBTNEnviar:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-radio-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 10px 0;
}

.custom-radio-checkbox__input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-radio-checkbox__text {
    font-size: 14px;
    color: #34495e;
    user-select: none;
}

.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #ecf0f1;
    text-decoration: none;
}

/* Estilos para el modal de resultado */
#ModalRespuesta .modal-content {
    max-width: 600px;
}

#ModalRespuesta .modal-body {
    text-align: center;
    padding: 30px 25px;
}

.contenedor-titulo {
    margin-bottom: 20px;
}

.contenedor-descripcion {
    margin: 15px auto;
    font-size: 15px;
    line-height: 1.6;
    color: #34495e;
}

.nombre-perro-popup {
    display: inline-block;
    margin: 15px 0;
    border-radius: 4px;
}

.cantidad-alimento {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        padding: 10px;
    }

    .calculator-title {
        font-size: 18px;
    }

    .form-section {
        padding: 10px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-actions {
        flex-direction: column;
        margin-top: 12px;
    }

    .btn {
        width: 100%;
        padding: 7px 14px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }

    .modal-body {
        padding: 15px;
    }

    .result-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .calculator-title {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .modal-content h2 {
        border-radius: 0;
    }

    .modal-footer {
        border-radius: 0;
    }
}

/* Estados de carga */
.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
.form-control:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

/* Animaciones suaves */
.form-group,
.result-section {
    transition: all 0.3s ease;
}