/* =============================================================================
   FIT-IAMKT - ESTILOS PRINCIPAIS
   Baseado nas cores do logo: Roxo #4A3B6B e Azul Claro #7DBFD9
   ============================================================================= */

:root {
    /* Cores principais do logo */
    --primary-purple: #4A3B6B;
    --primary-blue: #7DBFD9;
    --accent-chevron: #4A3B6B;
    
    /* Cores complementares */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --border: #E2E8F0;
    
    /* Estados */
    --success: #48BB78;
    --error: #F56565;
    --warning: #ED8936;
    
    /* Gradientes tecnológicos */
    --gradient-primary: linear-gradient(135deg, #4A3B6B 0%, #7DBFD9 100%);
    --gradient-accent: linear-gradient(90deg, #7DBFD9 0%, #4A3B6B 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient-primary);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    width: auto;
}

.header-title {
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-size: 1.75rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(125, 191, 217, 0.1);
}

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

.form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 59, 107, 0.3);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--bg-white);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--bg-white);
}

.btn-block {
    width: 100%;
    display: block;
}

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

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #F0FFF4;
    border-left: 4px solid var(--success);
    color: #22543D;
}

.alert-error {
    background: #FFF5F5;
    border-left: 4px solid var(--error);
    color: #742A2A;
}

.alert-warning {
    background: #FFFAF0;
    border-left: 4px solid var(--warning);
    color: #7C2D12;
}

.alert-info {
    background: #EBF8FF;
    border-left: 4px solid var(--primary-blue);
    color: #2C5282;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.plan-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 59, 107, 0.15);
}

.plan-card.selected {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(74, 59, 107, 0.05) 0%, rgba(125, 191, 217, 0.05) 100%);
}

.plan-name {
    font-size: 1.5rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 15px 0;
}

.plan-price small {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-credits {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.plan-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step-counter;
    margin: 20px 0;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    color: var(--bg-white);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
