/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #001efb 0%, #000f89 100%) !important;
    min-height: 100vh;
    color: #333;
}

/* Força o background azul em todos os elementos raiz */
html {
    background: linear-gradient(135deg, #001efb 0%, #000f89 100%) !important;
}

.cadastro-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff891a;
}

.logo i {
    font-size: 2rem;
}

.help-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.help-button i {
    color: #ff891a;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #fff;
    color: #ff891a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label {
    color: white;
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: #28a745;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 20px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.step-header h2 i {
    color: #ff891a;
    margin-right: 10px;
}

.step-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.selected {
    border-color: #ff891a;
    background: linear-gradient(135deg, #fff9f5 0%, #ffecdc 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 137, 26, 0.2);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.plan-icon {
    text-align: center;
    margin-bottom: 15px;
}

.plan-icon i {
    font-size: 2.5rem;
    color: #ff891a;
}

.plan-card h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.3;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.plan-price .currency {
    font-size: 1rem;
    color: #ff891a;
    font-weight: 600;
}

.plan-price .value {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.plan-price .cents {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

.plan-price .period {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.plan-features {
    list-style: none;
    flex-grow: 1;
}

.plan-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.9rem;
}

.plan-features i {
    color: #28a745;
    font-size: 0.8rem;
    min-width: 12px;
}

/* Payment Options */
.payment-options {
    text-align: center;
}

.payment-options h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: block;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
}

.payment-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #ff891a, #ff5e00);
    color: white;
    border-color: #ff891a;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #ff891a;
    box-shadow: 0 0 0 3px rgba(255, 137, 26, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group input:not([readonly]) {
    background: white !important;
    color: #333 !important;
    cursor: text !important;
    pointer-events: auto !important;
}

/* Forçar campos editáveis */
.form-group input[type="text"]:not([readonly]) {
    background: white !important;
    color: #333 !important;
    cursor: text !important;
    pointer-events: auto !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.field-help {
    margin-top: 5px;
}

.field-help a {
    color: #ff891a;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-help a:hover {
    text-decoration: underline;
}

/* Summary */
.summary-container {
    max-width: 600px;
    margin: 0 auto;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.summary-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-section h3 i {
    color: #ff891a;
}

.summary-content {
    color: #555;
    line-height: 1.6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #2c3e50;
}

.summary-value {
    color: #555;
}

/* Terms */
.terms-section {
    text-align: center;
    margin-top: 30px;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #ff891a;
    border-color: #ff891a;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: #ff891a;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff891a 0%, #ff5e00 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 137, 26, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.modal-body {
    padding: 30px;
    text-align: center;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon i {
    font-size: 2.5rem;
    color: white;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-info i {
    color: #ff891a;
}

/* Loading */
.modal-content.loading {
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff891a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: none;
    }
    
    .plan-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .cadastro-container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .plan-card {
        padding: 25px 20px;
        min-height: auto;
    }
    
    .plan-icon i {
        font-size: 3rem;
    }
    
    .plan-card h3 {
        font-size: 1.2rem;
        height: auto;
    }
    
    .plan-price .value {
        font-size: 3rem;
    }
    
    .plan-features li {
        font-size: 1rem;
        padding: 8px 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
    }
    
    .step-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .help-button {
        font-size: 0.8rem;
    }
    
    .plan-price .value {
        font-size: 2.5rem;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }
    
    .payment-option label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.plan-card:focus,
.payment-option label:focus,
input:focus {
    outline: 3px solid rgba(255, 137, 26, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .progress-container,
    .form-navigation {
        display: none;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 