/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

/* Container principal */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Barra de idiomas */
.language-toggle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 10;
}

.language-toggle button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 35px;
}

.language-toggle button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.language-toggle button.active {
    background: #667eea;
    border-color: #667eea;
}

/* Logo ICE */
.ice-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.ice-icon {
    width: 40px;
    height: 40px;
    fill: #667eea;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: #adb5bd;
    font-size: 1.1rem;
}

/* Seções do formulário */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

/* Grupos de formulário - TODOS IGUAIS */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Labels - TODOS IGUAIS com cores específicas */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

/* Cores dos labels baseadas no site */
.ice-label { color: #ffffff; background: rgba(102, 126, 234, 0.2); border-left-color: #667eea; }
.datetime-label { color: #ffffff; background: rgba(255, 193, 7, 0.2); border-left-color: #ffc107; }
.authority-name-label { color: #ffffff; background: rgba(255, 105, 180, 0.2); border-left-color: #ff69b4; }
.authority-position-label { color: #ffffff; background: rgba(255, 140, 0, 0.2); border-left-color: #ff8c00; }
.authority-institution-label { color: #ffffff; background: rgba(0, 123, 255, 0.2); border-left-color: #007bff; }
.authority-email-label { color: #ffffff; background: rgba(138, 43, 226, 0.2); border-left-color: #8a2be2; }
.authority-phone-label { color: #ffffff; background: rgba(32, 201, 151, 0.2); border-left-color: #20c997; }
.authority-case-label { color: #ffffff; background: rgba(255, 105, 180, 0.2); border-left-color: #ff69b4; }
.crime-type-label { color: #ffffff; background: rgba(255, 140, 0, 0.2); border-left-color: #ff8c00; }
.jurisdiction-label { color: #ffffff; background: rgba(40, 167, 69, 0.2); border-left-color: #28a745; }
.product-crime-label { color: #ffffff; background: rgba(138, 43, 226, 0.2); border-left-color: #8a2be2; }
.address-label { color: #ffffff; background: rgba(220, 53, 69, 0.2); border-left-color: #dc3545; }
.network-label { color: #ffffff; background: rgba(0, 123, 255, 0.2); border-left-color: #007bff; }
.balance-label { color: #ffffff; background: rgba(255, 140, 0, 0.2); border-left-color: #ff8c00; }
.crime-relation-label { color: #ffffff; background: rgba(255, 105, 180, 0.2); border-left-color: #ff69b4; }
.hash-label { color: #ffffff; background: rgba(138, 43, 226, 0.2); border-left-color: #8a2be2; }
.dates-label { color: #ffffff; background: rgba(255, 193, 7, 0.2); border-left-color: #ffc107; }
.victim-label { color: #ffffff; background: rgba(255, 105, 180, 0.2); border-left-color: #ff69b4; }
.flow-diagram-label { color: #ffffff; background: rgba(220, 53, 69, 0.2); border-left-color: #dc3545; }
.risk-label { color: #ffffff; background: rgba(40, 167, 69, 0.2); border-left-color: #28a745; }
.doc-police-label { color: #ffffff; background: rgba(255, 140, 0, 0.2); border-left-color: #ff8c00; }
.doc-screenshots-label { color: #ffffff; background: rgba(220, 53, 69, 0.2); border-left-color: #dc3545; }
.doc-court-label { color: #ffffff; background: rgba(138, 43, 226, 0.2); border-left-color: #8a2be2; }
.doc-authority-label { color: #ffffff; background: rgba(32, 201, 151, 0.2); border-left-color: #20c997; }
.request-label { color: #ffffff; background: rgba(40, 167, 69, 0.2); border-left-color: #28a745; }
.additional-obs-label { color: #ffffff; background: rgba(255, 140, 0, 0.2); border-left-color: #ff8c00; }
.signature-label { color: #ffffff; background: rgba(138, 43, 226, 0.2); border-left-color: #8a2be2; }

/* Inputs - TODOS IGUAIS 700x45px */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea {
    width: 700px;
    height: 45px;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    max-width: 100%;
}

.form-textarea,
textarea {
    height: 100px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Checkboxes e Radio */
.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Inputs inline */
.inline-input {
    margin-top: 15px;
    margin-left: 20px;
    display: none;
}

.inline-input.show {
    display: block;
}

/* Botões */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.btn-add {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Container dos botões de ação */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

/* Upload areas */
.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.upload-text {
    color: #667eea;
    margin-bottom: 5px;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Canvas de assinatura */
.signature-container {
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
}

.signature-canvas {
    width: 100%;
    height: 150px;
    background: #ffffff;
    border-radius: 10px;
    cursor: crosshair;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.signature-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.signature-hint {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin-top: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    color: #ffffff;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title,
.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    color: #ffffff;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.close {
    color: #ff4444;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.1);
    border: none;
}

.close:hover {
    color: #667eea;
    background: rgba(255, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        padding: 20px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    /* Inputs responsivos em mobile */
    .form-input,
    .form-select,
    .form-textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="datetime-local"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    /* Inputs ainda menores em mobile pequeno */
    .form-input,
    .form-select,
    .form-textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="datetime-local"],
    select,
    textarea {
        width: 100%;
        padding: 10px 12px;
    }
}


/* Botões - TODOS ROXOS */
.btn,
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn:active,
button:active {
    transform: translateY(0);
}

/* Canvas de assinatura com linha roxa */
.signature-canvas {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: crosshair;
    border: 2px solid #667eea;
}


/* Botões de upload padronizados */
.file-upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.3);
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.file-upload-content p {
    color: #667eea;
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.file-upload-content small {
    color: #adb5bd;
    font-size: 0.8rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview de imagens */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-container img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-info span {
    color: #ffffff;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.remove-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Inputs condicionais */
.inline-input {
    margin-top: 10px;
    margin-left: 25px;
    width: calc(100% - 25px);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .image-container img {
        height: 100px;
    }
    
    .file-upload-area {
        padding: 20px 10px;
    }
    
    .file-upload-content i {
        font-size: 1.5rem;
    }
}


/* Inputs condicionais */
.conditional-input {
    margin-top: 10px;
    padding-left: 25px;
}

.conditional-input .form-input {
    width: 100%;
    max-width: 700px;
    height: 45px;
}

/* Correção para radio groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-item input[type="radio"]:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
}

/* Correção para checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #667eea;
    font-weight: bold;
    font-size: 14px;
}

/* Esconder inputs nativos */
.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    display: none;
}



.close {
    color: #ff4444;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.1);
}

.close:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Alert box para LGPD */
.alert-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.alert-box h3 {
    color: #ffc107;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.alert-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Terms content */
.terms-content {
    margin: 20px 0;
}

.terms-content h3 {
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.terms-checkbox {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* GOVBR instructions */
.govbr-instructions {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.govbr-instructions h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.govbr-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.govbr-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.govbr-instructions a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.govbr-instructions a:hover {
    text-decoration: underline;
}

/* GOVBR info in form */
.govbr-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.govbr-info h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.govbr-info p {
    margin: 10px 0;
    color: #ffffff;
}

.govbr-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.govbr-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Preview content */
.preview-content {
    color: #ffffff;
}

.preview-content h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.preview-content h2 {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 400;
}

.preview-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-section h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.preview-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.preview-section strong {
    color: #ffffff;
    font-weight: 600;
}

.address-preview {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 3px solid #667eea;
}

/* Botões coloridos */
.remove-input-btn,
.remove-address-btn,
.remove-image-btn {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    margin-left: 10px;
}

.remove-input-btn:hover,
.remove-address-btn:hover,
.remove-image-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.add-input-btn,
.add-address-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.add-input-btn:hover,
.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.add-input-btn i,
.add-address-btn i {
    font-size: 12px;
}

/* Conditional inputs */
.conditional-input {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.conditional-input .form-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Multi-input containers */
.multi-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.multi-input-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.multi-input-item .form-input {
    flex: 1;
}

/* Signature canvas melhorado */
.signature-canvas {
    width: 100%;
    height: 150px;
    background: #ffffff;
    border-radius: 10px;
    cursor: crosshair;
    border: 2px solid rgba(102, 126, 234, 0.5);
    display: block;
}

.signature-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* File upload areas melhoradas */
.file-upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.file-upload-content i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.file-upload-content p {
    margin: 10px 0 5px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.file-upload-content small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Image preview melhorado */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-container img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(102, 126, 234, 0.1);
}

.file-icon i {
    font-size: 48px;
    color: #667eea;
}

.image-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.image-info span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 10px;
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .alert-box,
    .govbr-instructions {
        padding: 15px;
    }
    
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .multi-input-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .remove-input-btn,
    .remove-address-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
}

/* Melhorias nos botões principais */
.btn.btn-primary:disabled {
    background: rgba(102, 126, 234, 0.3);
    cursor: not-allowed;
    transform: none;
}

.btn.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Jurisdiction fields layout */
.jurisdiction-fields {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .jurisdiction-fields {
        grid-template-columns: 1fr;
    }
}


/* Centralizar botões principais */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

/* Botão verde para sucesso */
.btn.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Reduzir tamanho do botão + */
.add-input-btn,
.add-address-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.add-input-btn:hover,
.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.add-input-btn i,
.add-address-btn i {
    font-size: 10px;
}

/* Melhorar área de assinatura */
.signature-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-start;
}

.signature-canvas.locked {
    pointer-events: none;
    opacity: 0.8;
    border-color: #28a745;
}

.signature-saved-indicator {
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    display: none;
}

.signature-saved-indicator i {
    margin-right: 5px;
}

/* Responsividade para botões */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .signature-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .signature-buttons .btn {
        width: 100%;
    }
}


/* Corrigir tamanho do input de jurisdição */
.jurisdiction-input {
    width: 700px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.jurisdiction-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jurisdiction-fields .form-input {
    width: 700px !important;
    max-width: 100% !important;
}

/* Responsividade para jurisdição */
@media (max-width: 768px) {
    .jurisdiction-input,
    .jurisdiction-fields .form-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Footer */
.footer {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Header link */
.ice-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    width: 100%;
}

.ice-logo-link:hover {
    transform: translateY(-2px);
}

.title-group {
    text-align: center;
}

/* Privacy alert no modal do footer */
.privacy-alert {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #ffc107;
}

/* File indicator */
.file-indicator {
    margin-top: 10px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 5px;
    color: #28a745;
}

.file-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-count i {
    font-size: 16px;
}

/* Responsividade do footer */
@media (max-width: 768px) {
    .footer-content p {
        font-size: 12px;
    }
    
    .ice-logo-link {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .title-group {
        text-align: center;
    }
}


/* Botões + e X menores e quadrados */
.add-btn, .remove-input-btn, .remove-address-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.add-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
}

.remove-input-btn, .remove-address-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    color: white !important;
}

.add-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.remove-input-btn:hover, .remove-address-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Texto da assinatura centralizado */
.signature-manual-text {
    text-align: center;
    margin-top: 10px;
    color: #667eea;
    font-size: 14px;
}


/* Textarea com microfone */
.textarea-with-mic {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.textarea-with-mic textarea {
    flex: 1;
}

.mic-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0;
}

.mic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mic-btn.recording {
    background: linear-gradient(135deg, #dc3545, #c82333);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mic-btn.processing {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    cursor: not-allowed;
}

.mic-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsividade para textarea com mic */
@media (max-width: 768px) {
    .textarea-with-mic {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mic-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
}


/* Centralizar texto da assinatura */
.signature-manual-text {
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 10px;
    color: #667eea;
    font-style: italic;
}


/* Responsividade Mobile */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .language-toggle {
        top: -30px;
    }
    
    .language-toggle button {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 30px;
    }
    
    .ice-logo h1 {
        font-size: 24px;
    }
    
    .ice-logo p {
        font-size: 14px;
    }
    
    .form-input, .form-textarea, .form-select {
        width: 100%;
        box-sizing: border-box;
    }
    
    .multi-input-container {
        width: 100%;
    }
    
    .multi-input-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .textarea-with-mic {
        flex-direction: column;
        gap: 10px;
    }
    
    .mic-btn {
        align-self: flex-start;
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .footer {
        padding: 15px 10px;
        font-size: 12px;
    }
}


/* Ajustar cor do email nos Termos de Uso */
.modal-body a[href^="mailto:"] {
    color: #667eea !important;
    text-decoration: underline;
}

.modal-body a[href^="mailto:"]:hover {
    color: #5a6fd8 !important;
}


/* Responsividade Mobile */
/* Corrigir layout da seção 3 - Endereços Blockchain */
.multi-input-item {
    display: flex;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

.multi-input-item .form-group {
    width: 100% !important;
    margin-bottom: 20px;
    display: block !important;
}

.blockchain-address-input,
.blockchain-network-input,
.balance-input,
.crime-relation-input {
    width: 700px !important;
    max-width: 100% !important;
    display: block !important;
}

.conditional-input {
    width: 100% !important;
    margin-top: 10px;
}

.conditional-input input {
    width: 700px !important;
    max-width: 100% !important;
}

/* Botão adicionar endereço */
#addAddressBtn {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #667eea !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

#addAddressBtn:hover {
    background: #5a6fd8 !important;
}


/* Botões + e - quadrados com cantos arredondados */
#addAddressBtn, .remove-address-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 10px 0 !important;
}

#addAddressBtn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

#addAddressBtn:hover {
    background: #5a6fd8 !important;
    transform: scale(1.05) !important;
}

.remove-address-btn {
    background: #dc3545 !important;
    color: white !important;
    margin-top: 15px !important;
}

.remove-address-btn:hover {
    background: #c82333 !important;
    transform: scale(1.05) !important;
}

/* Garantir que multi-input-item mantenha layout vertical */
.multi-input-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.multi-input-item .form-group {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}


/* Melhorias adicionais de responsividade mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        padding: 20px;
        margin: 0;
        border-radius: 15px;
    }
    
    .language-toggle {
        top: 5px;
        gap: 2px;
    }
    
    .language-toggle button {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .form-input, .form-textarea, .form-select {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 12px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .footer {
        padding: 15px 0;
        font-size: 0.8rem;
    }
    
    .footer-content p {
        line-height: 1.6;
    }
    
    .footer-content a {
        display: inline-block;
        margin: 2px 5px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .footer-content a {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}


/* Melhorias para o modal de Configurações */
#configModal .modal-body {
    text-align: left;
    line-height: 1.8;
}

#configModal .modal-body h3 {
    color: #667eea;
    margin-bottom: 15px;
    margin-top: 25px;
    font-size: 18px;
}

#configModal .modal-body h3:first-child {
    margin-top: 0;
}

#configModal .modal-body p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

#configModal .modal-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

#configModal .modal-body ol li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

#configModal .modal-body a {
    color: #9ca3f7 !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

#configModal .modal-body a:hover {
    color: #b8bef9 !important;
}

#configModal .form-group {
    margin: 20px 0;
}

#configModal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #667eea;
    font-weight: 600;
}

#configModal .form-input {
    width: 100%;
    margin-bottom: 0;
}

#configModal .btn {
    margin-top: 10px;
}

/* Dynamic Fields UX Improvements */
.multi-input-container {
    position: relative;
}

.multi-input-item {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInDown 0.5s ease forwards;
}

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

.multi-input-item.newly-added {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        border-color: #667eea;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        border-color: #9ca3f7;
        box-shadow: 0 0 30px rgba(156, 163, 247, 0.5);
    }
}

.multi-input-item:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(102, 126, 234, 0.5);
}

.field-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.add-input-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.add-input-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.add-input-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.add-input-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.add-input-btn:active::before {
    width: 40px;
    height: 40px;
}

.remove-input-btn, .remove-address-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.remove-input-btn:hover, .remove-address-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ee5a5a, #ff6b6b);
}

.add-field-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #9ca3f7;
    font-size: 14px;
}

.add-field-info i {
    color: #667eea;
}

.field-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.field-count-badge {
    background: rgba(102, 126, 234, 0.2);
    color: #9ca3f7;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Success feedback animation */
@keyframes successFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.add-input-btn.success-feedback {
    animation: successFeedback 0.4s ease;
}

/* Estilo para preview da assinatura manuscrita */
.signature-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.signature-preview img {
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    background: white;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.signature-preview-label {
    color: #00d4aa;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

/* Estilo para preview da assinatura na seção de autenticidade */
.live-signature-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.signature-preview-container {
    text-align: center;
}

.signature-preview-label {
    color: #00d4aa;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.signature-preview-img {
    max-width: 100%;
    max-height: 150px;
    background: white;
    border: 2px solid #00d4aa;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.2);
    margin: 10px 0;
}

.signature-preview-note {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

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

/* Melhorias específicas para os campos multi-input já padronizados */
.multi-input-item .form-group {
    margin-bottom: 10px;
}

.multi-input-item .form-group:last-child {
    margin-bottom: 0;
}

