/* Estilos modernos para formulários */
.form-modern {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.form-modern .form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-modern .form-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.form-modern .form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-modern .form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-modern label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.form-modern input[type="text"],
.form-modern input[type="email"],
.form-modern input[type="tel"],
.form-modern input[type="number"],
.form-modern input[type="password"],
.form-modern select,
.form-modern textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.3s ease;
}

.form-modern input:focus,
.form-modern select:focus,
.form-modern textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-modern input::placeholder,
.form-modern textarea::placeholder {
    color: #94a3b8;
}

.form-modern select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-modern textarea {
    min-height: 120px;
    resize: vertical;
}

.form-modern .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.form-modern .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #0ea5e9;
}

.form-modern .checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

.form-modern .btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background-color: #0ea5e9;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-modern .btn-submit:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.form-modern .btn-submit:active {
    transform: translateY(0);
}

.form-modern .form-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.form-modern .form-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

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

/* Estilos para mensagens de validação */
.form-modern .validation-message {
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-modern .validation-message.error {
    color: #ef4444;
    display: block;
}

.form-modern .validation-message.success {
    color: #10b981;
    display: block;
}

.form-modern input.error,
.form-modern select.error,
.form-modern textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-modern input.success,
.form-modern select.success,
.form-modern textarea.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Estilos para formulários em abas */
.form-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.form-tab {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-tab.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
}

.form-tab:hover:not(.active) {
    color: #334155;
    border-bottom-color: #cbd5e1;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-modern {
        padding: 24px;
    }
    
    .form-modern .form-group-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-tabs {
        flex-wrap: wrap;
    }
    
    .form-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        font-size: 14px;
    }
}
