.form-fullwidth {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.form-fullwidth iframe {
    width: 100%;
    height: 100%;
    max-width: none;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
    background: transparent;
    box-shadow: none;
    outline: none;
    overflow: hidden;
    /* Force no scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Create overlay to hide scrollbar area */
.form-fullwidth::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

.form-fullwidth::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

/* Masks removed to prevent visual lines */

/* Force hide scrollbars with multiple methods */
.form-fullwidth iframe {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.form-fullwidth iframe::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hide any elements that appear after iframe */
.form-fullwidth iframe + *,
.form-fullwidth::after {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-fullwidth {
        height: calc(100vh - 200px); /* Reduz altura para não sobrepor o título */
        margin-top: 20px; /* Espaço para o título */
        position: static; /* Remove positioning complexo em mobile */
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .form-fullwidth iframe {
        height: 100%;
        position: relative;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .form-fullwidth {
        height: calc(100vh - 150px); /* Reduz altura para tablets */
        margin-top: 10px;
    }
    
    .form-fullwidth iframe {
        height: 100%;
    }
}

@media (min-width: 1025px) {
    .form-fullwidth {
        height: calc(100vh - 100px); /* Altura total menos espaço do título */
        margin-top: 0;
    }
    
    .form-fullwidth iframe {
        height: 100%;
    }
}

/* Error and fallback styles */
.form-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
}

.form-error h3 {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 16px;
    font-family: "Bosch Sans", Arial, sans-serif;
}

.form-error p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
}

.retry-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: #0056b3;
}

.retry-btn:active {
    background: #004085;
}

@media print {
    .form__iframe-container {
        display: none;
    }
}