/* Reset e configuraÃ§Ãµes base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #eb5325;
    --primary-dark: #d8421d;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #e35a24 0%, #bf760a 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.header-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Terms Container */
.terms-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.terms-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-header i {
    color: var(--primary-color);
}

.terms-version {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 500;
}

.terms-content {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 1rem;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.terms-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-section ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.privacy-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.privacy-item i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.privacy-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Acceptance Container */
.acceptance-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
  
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 50px;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  /* Classe que ativa o fade-in */

  .acceptance-container.mostrar {
    opacity: 1;
    transform: translateY(0);
  }

.acceptance-header {
    text-align: center;
    margin-bottom: 2rem;
}

.acceptance-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.acceptance-header i {
    color: var(--primary-color);
}

.acceptance-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.acceptance-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-input.valid {
    border-color: var(--success-color);
}

.form-input.invalid {
    border-color: var(--error-color);
}

.input-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.2rem;
}

.input-feedback.valid {
    color: var(--success-color);
}

.input-feedback.invalid {
    color: var(--error-color);
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.checkbox-text strong {
    color: var(--text-primary);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-button:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

.submit-button.loading {
    pointer-events: none;
}

.submit-button.loading span {
    opacity: 0;
}

.button-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.submit-button.loading .button-loader {
    opacity: 1;
}

/* Acceptance Info */
.acceptance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-item {
  

    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content.success .modal-header i {
    color: var(--success-color);
}

.modal-content.error .modal-header i {
    color: var(--error-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.success-details {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    text-align: left;
}

.success-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-content.success .modal-button {
    background: var(--success-color);
    color: white;
}

.modal-content.error .modal-button {
    background: var(--error-color);
    color: white;
}

.modal-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .terms-container,
    .acceptance-container {
        padding: 1.5rem;
    }
    
    .terms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .privacy-highlights,
    .acceptance-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .terms-header h2,
    .acceptance-header h2 {
        font-size: 1.5rem;
    }
    
    .submit-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}
span.force-break {
  /* display: block;*/
}



  #terms {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    overflow-y: auto;
    padding: 10px;
  }


  #termsAccept:disabled, #cpf:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  .dvregister {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

  .dvregister.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}

/* Overlay cobrindo a tela inteira */
#overlay-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Quando visível */
#overlay-loading.show {
  opacity: 1;
  visibility: visible;
}

/* Ícone animado (spinner estilo circular) */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #ffffff55;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animação do spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Classe inicial oculta */
.overlay-hidden {
  display: block;
  opacity: 0;
  visibility: hidden;
}


