/* MODAL RENTAL SIMULATION */
.rental-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.rental-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.rental-modal {
    width: 100%;
    max-width: 600px;
    margin: auto;
    max-height: 95vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #1f2937;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rental-modal-overlay.is-open .rental-modal {
    transform: translateY(0) scale(1);
}

.rental-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: var(--corISSO);
}

.rental-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rental-modal__close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.rental-modal__close:hover {
    background: #e2e8f0;
    color: #1f2937;
}

.rental-modal__content {
    background: #ffffff;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

/* SEÇÕES COMUNS */
.rental-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.rental-section__title {
    font-size: 0.75rem;
    color: var(--corISSO);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    padding: 0px 18px;
    margin-bottom: -16px;
}

.rental-section__description {
    font-size: 0.80rem;
    color: #505050;
    padding: 0px 20px;
    margin-top: -8px;
    margin-bottom: -20px;
    line-height: 1.2;
}

.rental-section__title svg {
    color: var(--corISSO, #175796);
}

/* BUSCA E LISTA DE PRODUTOS */
.rental-search-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    position: relative;
    align-items: flex-end;
}

.rental-search-bar .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 45px;
}

.rental-search-bar label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--oitentaBlack, #1f2937);
}

.rental-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1f2937;
    padding: 0 16px !important;
    border-radius: 10px;
    font-size: 0.9rem !important;
    transition: border-color 0.2s;
    height: 44px !important;
    margin-bottom: 0 !important;
}

.rental-select:focus {
    outline: none;
    border-color: var(--corISSO, #175796);
}

.rental-search-bar button {
    background: var(--corISSO, #175796);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    border-radius: 0px 10px 10px 0px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    height: 45px !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-search-bar button:hover {
    opacity: 0.9;
}

.rental-products-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.rental-product-item {
    display: flex;
    align-items: center;
    padding: 0px 18px;
    gap: 15px;
}

.rental-product-item__qty {
    background: #e2e8f0 !important;
    color: var(--corISSO, #175796) !important;
    font-family: inherit !important;
    padding: 3px 3px !important;
    padding-left: 15px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    margin-right: 10px !important;
    width: 52px !important;
    text-align: center !important;
    height: 40px !important;
    margin-top: 5px !important;
}

.rental-product-item__name {
    gap: 50px;
    flex: 1;
    font-size: 0.85rem;
    color: var(--oitentaBlack, #1f2937);
    font-weight: 500;
}

.rental-product-item__name strong {
    color: #10b981;
}

.rental-product-item__remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rental-product-item__remove:hover {
    opacity: 1;
}

/* CHECKBOXES E RADIOS */
.rental-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.rental-option {
    display: flex;
    align-items: center;
    padding: 2px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.rental-option:hover {
    border-color: var(--corISSO, #175796);
}

.rental-option input {
    margin-right: 16px;
    width: 18px;
    height: 18px;
    accent-color: var(--corISSO, #175796);
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
}

.rental-option span {
    color: var(--oitentaBlack);
    font-size: 0.80rem;
    font-weight: 500;
}

.rental-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: #ffffff;
}

.rental-service span {
    color: var(--oitentaBlack);
    font-size: 0.85rem;
    font-weight: 500;
}

/* RESUMO E FORMULÁRIO FINAL */
.rental-summary {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    padding: 5px;
    align-items: stretch;
    margin: 0 auto;
}

.rental-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--oitentaBlack);
    font-weight: 500;
    gap: 50px;
}

.rental-summary__item.total {
    font-size: 1rem;
    color: var(--oitentaBlack);
    gap: 20px;
    padding-bottom: 5px;
}

.rental-summary__value {
    color: var(--corISSO, #175796);
    font-weight: 700;
}

.rental-lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 12px;
    font-size: 0.85rem;
    margin-bottom: -10px;
}

.rental-lead-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.rental-lead-form .form-group--full {
    grid-column: 1 / -1;
}

.rental-modal__footer {
    padding: 6px 6px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.rental-submit-btn {
    background: var(--corISSO, #175796);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
    flex: 1;
    max-height: 50px;
}

.rental-whatsapp-btn {
    background: var(--verdeWhats);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
    flex: 1;
    max-height: 50px;
}

.rental-submit-btn svg,
.rental-whatsapp-btn svg {
    position: static;
    transform: none;
}

.rental-whatsapp-btn:hover {
    background: #0ba86c;
    transform: translateY(-2px);
}

.rental-whatsapp-btn:active {
    transform: translateY(0);
}

.rental-submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.rental-submit-btn:active {
    transform: translateY(0);
}

/* TELA DE SUCESSO */
.rental-success-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    gap: 20px;
    background: #ffffff;
}

.rental-success-panel.is-active {
    display: flex;
}

.rental-success-panel svg {
    color: #10b981;
    width: 64px;
    height: 64px;
}

.rental-success-panel h3 {
    font-size: 1.6rem;
    color: #1f2937;
    margin: 0;
    font-weight: 600;
}

.rental-success-panel p {
    color: #475569;
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.5;
}

.rental-success-button {
    background: transparent;
    border: 2px solid var(--corISSO, #175796);
    color: var(--corISSO, #175796);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 16px;
    transition: background 0.2s, color 0.2s;
}

.rental-success-button:hover {
    background: var(--corISSO, #175796);
    color: #ffffff;
}

.rental-fail-button {
    background: transparent;
    border: 2px solid var(--verdeWhats, #25d366);
    color: var(--verdeWhats, #25d366);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.rental-fail-button:hover {
    background: var(--verdeWhats, #25d366);
    color: #ffffff;
}

.rental-section--contact {
    margin-bottom: 8px;
}

.rental-modal__header-icon {
    position: absolute;
    margin-top: 20px;
}
.rental-modal__header-title {
    margin-left: 35px;
}
.rental-modal__header-subtitle {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1px;
    margin-left: 37px;
}
.rental-modal__content--spaced {
    border-radius: 0;
    padding: 10px 38px;
    gap: 20px;
}
.rental-section__title--compact {
    margin-bottom: -18px;
    padding: 0px 0px 2px 0px;
}
.rental-section__title--no-padding {
    margin-bottom: 5px;
    padding: 0px;
}
.rental-section__title--slight-padding {
    margin-bottom: 5px;
    padding: 0px 3px;
}
.rental-form-input {
    height: 40px;
}
.rental-form-input--spaced {
    height: 40px;
    margin-top: 0;
}
.rental-form-select {
    margin-top: 5px;
    padding: 12px 10px;
}
.rental-form-group--flex {
    flex: 1;
    margin: 0;
}
.rental-select--small {
    font-size: 0.85rem;
}
.rental-btn--bottom {
    align-self: baseline;
}
.rental-option--compact {
    padding: 4px 0px;
}
.rental-summary__item--compact {
    padding-bottom: 5px;
}
.rental-modal__actions-wrapper {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
    margin-top: 5px;
}
.rental-btn-text--small {
    font-size: 0.80rem;
}
.rental-btn-text--medium {
    font-size: 0.85rem;
}
.pix-product-price {
    font-weight: 700;
    color: var(--corISSO, #175796);
}
.pix-product-free {
    font-weight: 700;
    color: #10b981;
}
.pix-divider {
    border-top: 1px solid rgb(226, 226, 226);
    margin-bottom: -15px;
    margin-top: -5px;
}
.pix-tooltip-icon {
    vertical-align: middle;
    margin-left: 4px;
    margin-bottom: 2px;
}

.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    outline: none;
}

.custom-tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 6px;
    position: absolute;
    z-index: 100;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%);
    
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    font-size: 0.75rem;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.2);
}

.custom-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: #333333 transparent transparent transparent;
    left: 50%;
    margin-left: -6px;
}

.custom-tooltip-text.align-left {
    left: auto;
    right: -10px;
    transform: none;
}
.custom-tooltip-text.align-left::after {
    left: auto;
    right: 15px;
    margin-left: 0;
}

.custom-tooltip-text.align-right {
    left: -10px;
    right: auto;
    transform: none;
}
.custom-tooltip-text.align-right::after {
    left: 15px;
    right: auto;
    margin-left: 0;
}

.custom-tooltip-text.is-visible {
    visibility: visible;
    opacity: 1;
}

.pix-storage-desc {
    margin-bottom: -9px;
}
.pix-summary-wrapper {
    margin-bottom: 6px;
}
.pix-summary__item--reset {
    border: none;
    padding: 0;
    margin: 0;
}
.pix-total-label {
    font-size: 0.95rem;
}

.rental-terms-checkbox {
    margin-top: 8px;
    width: 20px;
    height: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
    .rental-lead-form {
        grid-template-columns: 1fr;
    }
    
    .rental-search-bar button {
        padding: 12px;
    }
    
    .rental-search-autocomplete {
        right: 0;
    }

    .rental-modal__content--spaced {
        padding: 4px 11px;
    }

    .pix-summary-wrapper {
        margin-bottom: 0px;
    }

    .rental-summary__item--compact {
        padding-bottom: 0px;
    }

    .rental-summary__item {
        font-size: 0.9rem;
    }

    .rental-summary__item.total {
        font-size: 0.9rem;   
        padding-top: 0px;                      
    }

    .rental-modal__footer {
        padding: 6px 6px;
    }

    .rental-modal__header h2 {
        font-size: 1rem;
    }

    .rental-product-item__name {
        font-size: 0.75rem;
    }

    .rental-product-item {
        padding: 0px 4px;
    }

    .rental-option {
        padding: 2px 4px;
    }

    .rental-option span {
        font-size: 0.75rem;
    }

    .rental-section__title {
        padding: 0px 4px;
    }

    .rental-products-list {
        margin-bottom: -10px;
    }

    .rental-submit-btn,
    .rental-whatsapp-btn {
        padding: 12px 8px;
    }
    
    .rental-modal__actions-wrapper {
        gap: 8px;
    }

    .rental-btn-text--small {
        font-size: 0.75rem;
    }

    .rental-btn-text--medium {
        font-size: 0.80rem;
    }

    .rental-section__description {
        font-size: 0.80rem;
        color: #505050;
        padding: 0px 4px 0px 30px;
        margin-top: -8px;
        margin-bottom: -12px;
        line-height: 1.2;
    }

    .rental-modal {
        max-height: 83vh;
    }

    .rental-product-item__qty {
        padding-left: 5px !important;
    }
}
/* =========================================
   UTILITIES & REFACTORED INLINE STYLES 
   ========================================= */

/* Modal & Input Utilities */
.rental-form-select--no-margin { margin-top: 0; }
.rental-search-bar--compact { margin-bottom: 0; }
.rental-input--left-radius { border-radius: 10px 0 0 10px; }
.rental-btn--cep-search { width: auto; padding: 0 16px; }
.rental-error-title { color: var(--vermelhoComprar, #dc2626); }
.rental-group--hidden { display: none; }

/* Pix Modal Specifics */
.pix-divider--compact { margin-top: -15px; }
.pix-desc--warranty { margin-bottom: -18px; padding-top: 8px; }
.pix-option--compact { margin-bottom: -10px; }
.pix-desc--storage { margin-bottom: -12px; padding-top: 6px; }
.pix-summary__item--no-border { border-top: none !important; }
.pix-btn-submit {
    background: var(--verdeWhats, #25d366) !important;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.pix-btn-submit:hover {
    background: #0ba86c !important;
}

/* Product Specifics */
.btn-action--buy-pix { border-radius: 0; }
.or-separator--hidden { color: transparent; }
.price-installment--no-margin { margin: 0; }
.contact-label--hidden { color: transparent; }
.btn-action--buy-link { text-decoration: none; }
.product-contact-svg { margin-left: -15px; margin-right: -30px; }
