/* ABHO Editar Perfil - Estilos v2.0 */

/* Reset específico do plugin */
.abho-editar-perfil-container *,
.abho-editar-perfil-container *::before,
.abho-editar-perfil-container *::after {
    box-sizing: border-box !important;
}

/* Garantir que botões do plugin tenham prioridade */
button.abho-btn,
button.abho-btn-next,
button.abho-btn-prev,
button.abho-btn-submit,
button.abho-tab-btn {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.abho-editar-perfil-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .abho-editar-perfil-container {
        margin: 15px auto;
        padding: 0 15px;
    }
}

/* Navegação por Abas */
.abho-tabs-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.abho-tab-btn {
    flex: 1 !important;
    min-width: 140px !important;
    padding: 12px 15px !important;
    background: #ffffff !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.5 !important;
}

.abho-tab-btn:hover {
    background: #f0f8ff !important;
    border-color: #007aff !important;
    color: #007aff !important;
    text-decoration: none !important;
}

.abho-tab-btn.active {
    background: #007aff !important;
    color: #ffffff !important;
    border-color: #007aff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
}

.abho-tab-btn.completed {
    background: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}

@media (max-width: 768px) {
    .abho-tabs-navigation {
        flex-direction: column;
    }
    
    .abho-tab-btn {
        width: 100%;
    }
}

.abho-form {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .abho-form {
        padding: 0 !important;
    }
}

.abho-section-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0 0 30px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #007aff !important;
    line-height: 1.3 !important;
}

@media (max-width: 768px) {
    .abho-section-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
}

.abho-subsection-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 30px 0 20px 0 !important;
}

.abho-info {
    background: #e3f2ff !important;
    padding: 16px 20px !important;
    border-left: 4px solid #007aff !important;
    border-radius: 8px !important;
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    line-height: 1.6 !important;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.1) !important;
}

@media (max-width: 768px) {
    .abho-info {
        padding: 14px 16px !important;
        font-size: 13px !important;
    }
}

.abho-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}

.abho-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 10px;
}

.abho-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.abho-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 10px;
}

.abho-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .abho-col-4,
    .abho-col-6,
    .abho-col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.abho-field {
    margin-bottom: 20px;
}

.abho-field label {
    display: block !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.abho-field label .required {
    color: #ff3b30 !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .abho-field label {
        font-size: 14px !important;
    }
}

.abho-field input[type="text"],
.abho-field input[type="email"],
.abho-field input[type="date"],
.abho-field input[type="file"],
.abho-field textarea,
.abho-field select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-sizing: border-box !important;
}

.abho-field input[type="text"]:focus,
.abho-field input[type="email"]:focus,
.abho-field input[type="date"]:focus,
.abho-field textarea:focus,
.abho-field select:focus {
    border-color: #007aff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
}

.abho-field input::placeholder,
.abho-field textarea::placeholder {
    color: #666666 !important;
}

.abho-field textarea {
    resize: vertical;
    min-height: 100px;
}

.abho-field small {
    display: block !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    color: #666666 !important;
}

.abho-radio-group {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.abho-radio-group label {
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.abho-radio-group label:hover {
    border-color: #007aff !important;
    background: #f0f8ff !important;
}

.abho-radio-group input[type="radio"] {
    margin-right: 8px !important;
    cursor: pointer !important;
    width: 18px !important;
    height: 18px !important;
}

.abho-radio-group input[type="radio"]:checked + span,
.abho-radio-group label:has(input[type="radio"]:checked) {
    border-color: #007aff !important;
    background: #e3f2ff !important;
    color: #007aff !important;
}

@media (max-width: 768px) {
    .abho-radio-group {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .abho-radio-group label {
        width: 100% !important;
    }
}

.abho-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    padding: 16px 18px !important;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    line-height: 1.6 !important;
    color: #000000 !important;
}

.abho-checkbox-label:hover {
    background: #e9ecef !important;
    border-color: #007aff !important;
}

.abho-checkbox-label input[type="checkbox"] {
    margin-right: 12px !important;
    margin-top: 3px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.abho-checkbox-label:has(input[type="checkbox"]:checked) {
    background: #e3f2ff !important;
    border-color: #007aff !important;
    color: #007aff !important;
}

@media (max-width: 768px) {
    .abho-checkbox-label {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
}

.abho-current-file {
    margin: 12px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border-left: 4px solid #007aff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.abho-current-file a {
    color: #007aff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: 2px solid #007aff !important;
    transition: all 0.3s ease !important;
}

.abho-current-file a:hover {
    background: #007aff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.abho-preview-image {
    max-width: 200px !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    display: block !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #e0e0e0 !important;
}

@media (max-width: 768px) {
    .abho-preview-image {
        max-width: 150px !important;
    }
}

.abho-form-navigation {
    display: flex !important;
    gap: 15px !important;
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 2px solid #e0e0e0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.abho-form-navigation > div {
    display: flex !important;
    gap: 15px !important;
}

@media (max-width: 768px) {
    .abho-form-navigation {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 30px !important;
        padding-top: 25px !important;
    }
    
    .abho-form-navigation > div {
        width: 100% !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .abho-form-navigation .abho-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

.abho-btn {
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    text-align: center !important;
    min-width: 140px !important;
}

.abho-btn-next,
.abho-btn-submit {
    background: #007aff !important;
    color: #ffffff !important;
    border: 2px solid #007aff !important;
}

.abho-btn-next:hover,
.abho-btn-submit:hover {
    background: #0051d5 !important;
    border-color: #0051d5 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
}

.abho-btn-prev {
    background: #ffffff !important;
    color: #007aff !important;
    border: 2px solid #007aff !important;
}

.abho-btn-prev:hover {
    background: #f0f8ff !important;
    border-color: #0051d5 !important;
    color: #007aff !important;
}

.abho-form-section {
    animation: fadeIn 0.3s ease-in;
}

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

.abho-conditional {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.abho-conditional.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 5000px;
    }
}

.abho-success {
    background: #d4edda;
    color: #155724;
    padding: 20px 25px;
    border: 2px solid #28a745;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.abho-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Progress Indicator */
.abho-progress-bar {
    height: 6px !important;
    background: #e0e0e0 !important;
    border-radius: 10px !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.abho-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #007aff 0%, #0051d5 100%) !important;
    transition: width 0.4s ease !important;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .abho-progress-bar {
        margin-bottom: 20px !important;
    }
}

/* Loading State */
.abho-loading {
    position: relative;
}

.abho-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch-friendly para mobile */
@media (max-width: 768px) {
    /* Aumentar área de toque */
    .abho-field input,
    .abho-field textarea,
    .abho-field select {
        min-height: 48px !important;
        font-size: 16px !important; /* Evita zoom no iOS */
    }
    
    .abho-btn {
        min-height: 48px !important;
        padding: 16px 24px !important;
    }
    
    .abho-tab-btn {
        min-height: 48px !important;
        padding: 14px 12px !important;
        font-size: 13px !important;
    }
    
    /* Melhorar espaçamento */
    .abho-field {
        margin-bottom: 24px !important;
    }
    
    .abho-row {
        margin-bottom: 0 !important;
    }
    
    /* Otimizar tabs */
    .abho-tabs-navigation {
        padding: 12px !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
}

/* Animações suaves */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Remover dark mode - sempre fundo claro */
