* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #48bb78;
    --error: #f56565;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    --shadow-hover: 0 15px 50px rgba(102, 126, 234, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 700px;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    opacity: 0.9;
}

form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: var(--error);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"].error,
input[type="email"].error,
select.error {
    border-color: var(--error);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.file-upload {
    position: relative;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.file-label:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.file-icon {
    font-size: 24px;
}

.file-text {
    font-size: 14px;
    color: var(--text-light);
}

.preview {
    margin-top: 12px;
    display: none;
}

.preview.active {
    display: block;
}

.preview img {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.form-actions {
    margin-top: 32px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.message.active {
    display: block;
}

.message.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.message.error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Planos de Associação */
.planos-grid,
.planos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.plano-option {
    cursor: pointer;
}

.plano-option input[type="radio"] {
    display: none;
}

.plano-card {
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plano-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.plano-option input[type="radio"]:checked+.plano-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

.plano-card.popular {
    border-color: var(--secondary);
    padding-top: 28px;
}

.plano-option input[type="radio"]:checked+.plano-card.popular {
    border-color: var(--primary);
}

.plano-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.plano-nome {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.plano-valor {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.plano-periodo {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Responsivo para tablets */
@media (max-width: 768px) {

    .planos-grid,
    .planos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .plano-card {
        padding: 18px 12px;
        min-height: 110px;
    }

    .plano-valor {
        font-size: 18px;
    }
}

/* Responsivo para mobile */
@media (max-width: 480px) {

    .planos-grid,
    .planos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .plano-card {
        padding: 15px 8px;
        min-height: 100px;
    }

    .plano-valor {
        font-size: 16px;
    }

    .plano-nome {
        font-size: 11px;
    }

    .plano-periodo {
        font-size: 10px;
    }

    .plano-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-header h1 {
        font-size: 24px;
    }

    form {
        padding: 30px 20px;
    }
}