:root {
    --primary: #FF7A42;
    --primary-light: #FFA37D;
    --primary-dark: #E65920;
    --accent: #E91E63;
    --accent-light: #F48FB1;
    --accent-dark: #C2185B;
    --primary: #FF7A42; 
    --text-dark: #1A2142;
    --text-medium: #546E7A;
    --text-light: #B0BEC5;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-color: #ECEFF1;
    --positive: #4CAF50;
    --negative: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --header-height: 64px;

    /* Transition */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans 3', sans-serif;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    line-height: 1.5;
    overflow: hidden;
}
.theme-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-y: scroll;
}

/* Background Decorations */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: fixed;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    background: radial-gradient(circle, var(--primary), transparent 70%) !important;
    width: 40vw;
    height: 40vw;
    top: -10vw;
    right: -10vw;
}

.circle-2 {
    background: radial-gradient(circle, var(--accent), transparent 70%);
    width: 40vw;
    height: 40vw;
    bottom: -10vw;
    left: -10vw;
}


.container {
    width: 100%;
    height: 100vh;
    max-width: 1000px;
    padding: 0 15px;
    z-index: 10;
}

.register-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    padding-bottom: 30px;
    position: relative;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--card-bg);
    padding: 32px 40px;
    text-align: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.type-selector {
    display: flex;
    justify-content: center;
    margin: -25px auto 20px;
    position: relative;
    z-index: 10;
    width: fit-content;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 6px;
    box-shadow: var(--shadow-md);
}

.type-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-medium);
    transition: var(--transition);
}

.type-option i {
    margin-right: 8px;
    font-size: 18px;
}

.type-option.active {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.progress-bar-ivici {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    max-width: 600px;
    padding: 0 40px;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 30px;
    left: 90px;
    right: 90px;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.progress-completed {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--primary));
    transition: width 0.3s ease;
    border-radius: 3px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: var(--card-bg);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.step.completed .step-circle {
    background: var(--positive);
    color: var(--card-bg);
    border-color: transparent;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.step.active .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

form {
    padding: 0 40px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

.form-group.large {
    flex: 2;
}

.form-group.small {
    flex: 0.5;
    min-width: 100px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background);
    font-size: 16px;
    color: var(--text-dark);
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 122, 66), 0.1);
}

input::placeholder {
    color: var(--text-light);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 40px;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.input-with-icon i:hover {
    color: var(--primary);
}

.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.custom-select i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-medium);
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--background);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.summary-container {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 20px;
}

.summary-container h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-section {
    margin-bottom: 25px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.summary-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.summary-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.terms-container {
    margin-top: 25px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--border-color);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-text {
    font-size: 14px;
    line-height: 24px;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

.cnpj-search-icon {
    cursor: pointer;
}

.cnpj-loading {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(var(--primary-rgb, 255, 122, 66), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cnpj-error {
    color: var(--negative);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.cnpj-error i {
    margin-right: 5px;
    font-size: 14px;
}

/* Error states */
.input-error {
    border-color: var(--negative) !important;
}

.error-message {
    color: var(--negative);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 5px;
    font-size: 14px;
}
/* Responsive */
@media screen and (max-width: 768px) {
    .register-container {
        padding-bottom: 20px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .progress-bar-ivici {
        padding: 0 20px;
    }
    
    .progress-line {
        left: 40px;
        right: 40px;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    form {
        padding: 0 20px 100px;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .summary-data {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .type-selector {
        margin: -20px auto 20px;
        width: 80%;
        border-radius: 24px;
        flex-wrap: wrap;
    }
    
    .type-option {
        flex: 1 1 100%;
        padding: 12px 15px;
        justify-content: center;
        text-align: center;
    }
    
    .progress-bar-ivici {
        margin: 30px auto;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}