/* 
Theme Name: TBK Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Tema custom per TBK
Author: Xavier Gadea
Author URI: https://wwwoood.info
Template: hello-elementor
Version: 1.0.0
Text Domain: tbk-child-master
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
html,
body {
    overflow-x: hidden !important;
}

/* Ocultar el porcentaje original */
.e-form__indicators__indicator__progress__meter {
    color: transparent !important;
}

/* Asegurar que el contenedor tenga posición relativa */
.e-form__indicators__indicator__progress {
    position: relative !important;
    margin-top: 25px !important;
    overflow: visible !important;
    /* Espacio para el texto encima */
}

/* Texto del paso encima de la barra */
.step-counter {
    position: absolute !important;
    top: -25px !important;
    left: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    z-index: 10 !important;
    display: block !important;
    line-height: 1.5 !important;
}


/****************** PUJADA D' ARXIUS ***************************/
/* Wrapper principal */
.custom-file-upload-wrapper {
    width: 100%;
    margin: 10px 0;
}

/* Drop Zone */
.file-drop-zone {
    border: 2px dashed var(--e-global-color-5f56717);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 300px;
}

.file-drop-zone:hover {
    border-color: var(--e-global-color-5f56717);

}

.file-drop-zone.drag-over {
    border-color: var(--e-global-color-5f56717);
    background: var(--e-global-color-2e284aa);
    transform: scale(1.02);
}

.drop-zone-content svg {
    color: var(--e-global-color-5f56717);
    margin: 0 auto 15px;
    display: block;
}

.drop-zone-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.drop-zone-subtext {
    font-size: 14px;
    color: #718096;
    margin: 0 0 15px 0;
}

/* Botó principal */
.custom-file-button {
    background: var(--e-global-color-5f56717);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-button:hover {
    background: var(--e-global-color-2e284aa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Container de previews */
.file-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Item individual de preview */
.file-preview-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.file-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.file-icon {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f7fafc;
}

/* Info de l'arxiu */
.file-preview-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.file-name {
    font-size: 12px;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Botó eliminar */
.file-remove {
    background: #fc8181;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #f56565;
    transform: scale(1.1);
}

/* Botó afegir més */
.add-more-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
}

.custom-file-button-small {
    background: #e2e8f0;
    color: #2d3748;
    border: 2px dashed #cbd5e0;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}



/* Responsive */
@media (max-width: 768px) {
    .file-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .file-preview-item img,
    .file-icon {
        height: 120px;
    }
}

.form-submitting .fmr-subtit {
    display: none !important;
}

.faq .elementor-accordion-item {
    margin-bottom: 10px !important;
}

.faq .elementor-active.elementor-tab-title {
    border-radius: 20px 20px 0px 0px !important;
}

.faq .elementor-tab-title {
    border-radius: 20px 20px 20px 20px;
}

.faq .elementor-tab-content {
    border-radius: 0px 0px 0px 0px;
}

.faq .elementor-active.elementor-tab-content {
    border-radius: 0px 0px 20px 20px !important;
}

/* Estado inicial: Invisible y desplazado */
body:not(.elementor-editor-active) .apple-reveal {
    opacity: 0 !important;
    transform: translateY(50px) scale(0.98);
    transition: opacity 2.4s cubic-bezier(0.36, 1, 0.3, 1),
        transform 2.4s cubic-bezier(0.36, 1, 0.3, 1) !important;
    will-change: transform, opacity;
}

/* Estado activo: Visible y en su sitio */
body:not(.elementor-editor-active) .apple-reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.tbk-financiament-info a {
    color: #71717A !important;
    text-decoration: underline !important;
}

.hero-blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 12px;
    /* opcional, si vols cantonades arrodonides */
}